<% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/jquery-ui-sortable.min" %> <% end %> <% content_for :page_specific_css do %> <% end %>

<%= @banner.title %>
" href="<%= admin_ad_banner_path(@banner.id) %>">Not Expired " href="<%= admin_ad_banner_path(@banner.id, :show => "expired") %>">Expired

<% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @images.each do |image| %> <% end %>
<% if image.exchange_item == "1" %> <%= image_tag image.file.thumb, :class => "banner-image" %> <% elsif image.exchange_item == "2" %> <% elsif image.exchange_item == "3" %> <% video_snapshot_url = "" video_snapshot_url = image.video_snapshot.url if image.video_snapshot.file %> <% end %> <%= image.title.to_s.html_safe rescue "" %> <% if can_edit_or_delete?(@banner) %> <% end %> <% if !image.postdate.nil? %> <%= image.postdate.strftime("%Y-%m-%d %H:%M") rescue "" %> <% if !image.deadline.nil? %> ~ <%= image.deadline.strftime("%Y-%m-%d %H:%M") rescue "" %> <% if image.expired? %> <%= t("ad_banner.expired") %> <% end %> <% end %> <% end %> <% if image.out_link != "" %> " target="_blank">Link <% end %>
<% if can_edit_or_delete?(@banner) %>
<%= t("ad_banner.add") %> <%= t("ad_banner.order") %>
<%= content_tag :div, paginate(@images), class: "pagination pagination-centered" %>
<% end %>