Sha256: eb99b5ec93627055d764460c6978bf43e01b8fae43bb205423130d5109b7dc63
Contents?: true
Size: 1019 Bytes
Versions: 5
Compression:
Stored size: 1019 Bytes
Contents
<%= content_tag :tr, 'data-id' => banner.id, :class => 'admin-banner-set-item' do %> <td width="200"> <%= link_to banner.banner.url(:banner), :target => :blank do %> <%= image_tag banner.banner.url(:tiny) %> <% end %> </td> <td><%= banner.start_date.try(:strftime, '%m/%d/%Y') %></td> <td class="admin-banner-set-item-nowrap"> <%= banner.end_date.try(:strftime, '%m/%d/%Y') %> <% if banner.is_expired? %> <span class="label">Expired</span> <% end %> </td> <% if !banner.owner.has_rich_text %> <td> <% if banner.link_to.present? %> <%= link_to banner.link_to, banner.link_to, :target => :blank %> <% else %> n/a <% end %> </td> <% end %> <td class="admin-banner-set-item-nowrap"> <%= link_to 'Edit', edit_admin_banner_path(banner), :class => 'admin-banner-set-item-edit btn btn-mini' %> <%= link_to 'Delete', admin_banner_path(banner), :class => 'admin-banner-set-item-delete btn btn-mini btn-danger' %> </td> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems