% content_for :page_specific_css do %> <% end %>
<%= image_tag image.file.thumb.url, :class => "banner-image" %> |
<%= image.title 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 %> |