diff --git a/app/views/admin/ad_banners/_index.html.erb b/app/views/admin/ad_banners/_index.html.erb index 1e85718..02a4011 100644 --- a/app/views/admin/ad_banners/_index.html.erb +++ b/app/views/admin/ad_banners/_index.html.erb @@ -225,15 +225,21 @@ <% banner.ad_images.can_display.desc(:created_at).each do |image| %> <% if image.exchange_item == '1' %>
- <% elsif image.video_snapshot %> + <% elsif image.video_snapshot.present? %> <% elsif image.exchange_item == '2' %> <% end %> <% end %> <% else %> - - + <% + width = banner.width + height = banner.height + width = 200 if width.blank? + height = 80 if height.blank? + %> + + <% end %> diff --git a/app/views/admin/ad_banners/_index_table.html.erb b/app/views/admin/ad_banners/_index_table.html.erb index 81ea2b3..7b6c300 100644 --- a/app/views/admin/ad_banners/_index_table.html.erb +++ b/app/views/admin/ad_banners/_index_table.html.erb @@ -1,10 +1,10 @@ <% content_for :page_specific_css do %> <% end %>| - | ++ <%= banner.category.title rescue "" %> + | +