adbanner-test/app/views/admin/ad_images/index.html.erb

34 lines
999 B
Plaintext
Raw Normal View History

<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 "&nbsp;" %></td>
</tr>
<% end %>
</tbody>
</table>