ad_banner_pro/app/views/admin/ad_images/index.html.erb

36 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2014-11-25 10:34:14 +00:00
<table class="table main-list">
<thead>
<tr class="sort-header">
<% @table_fields.each do |f| %>
<%= thead(f) %>
<% end %>
</tr>
</thead>
<tbody>
<% @ad_images.each do |image| %>
<tr>
<td><img src="<%= image.file.thumb.url %>" /></td>
<td><%= image.banner.title %></td>
<td>
<%= image.title %>
<div class="quick-edit">
<% if can_edit_or_delete?(image) %>
<ul class="nav nav-pills">
<li>
<a href="/<%= I18n.locale %>/admin/ad_images/<%= image.id.to_s %>/edit"><%= t(:edit) %></a>
</li>
<li>
<a class="text-error" href="/<%= I18n.locale %>/admin/ad_images/<%= image.id.to_s %>" data-method="delete" data-confirm="Are you sure?"><%= t(:delete_) %></a>
</li>
</ul>
<% end %>
</div>
</td>
<td><%= format_value image.postdate %></td>
<td><%= format_value image.deadline %></td>
<td><%= image.out_link rescue "&nbsp;" %></td>
</tr>
<% end %>
</tbody>
</table>