2014-05-09 08:42:23 +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">
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><%= format_value image.postdate %></td>
|
|
|
|
<td><%= format_value image.deadline %></td>
|
|
|
|
<td><%= image.out_link rescue " " %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|