% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/jquery-ui-sortable.min" %> <% end %> <% content_for :page_specific_css do %> <% 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) %>
|
<% 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 %> |