36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
|
<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 " " %></td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|