Fix bug.
This commit is contained in:
parent
8341365785
commit
c5add605f9
app/views/admin/ad_banners
|
@ -225,8 +225,10 @@
|
|||
<% banner.ad_images.can_display.desc(:created_at).each do |image| %>
|
||||
<% if image.exchange_item == '1' %>
|
||||
<div class="slide-img" style=" background: url('<%= image.file.thumb.url %>'); background-size: cover; background-position: center;"></div>
|
||||
<% elsif image.video_snapshot %>
|
||||
<div class="slide-img" style=" background: url('<%= image.video_snapshot %>'); background-size: cover; background-position: center;"></div>
|
||||
<% elsif image.exchange_item == '2' %>
|
||||
<div class="slide-img" style=" background: url('https://img.youtube.com/vi/<%= image.youtube.to_s[-11,11] %>/hqdefault.jpg'); background-size: cover; background-position: center;"></div>
|
||||
<div class="slide-img" style=" background: url('<%= image.youtube_thumb %>'); background-size: cover; background-position: center;"></div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
|
|
Loading…
Reference in New Issue