adbanner-test/app/views/admin/ad_banners/_index.html.erb

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>
<% @banners.each do |banner| %>
<tr>
<td>
<%= banner.title %>
<div class="quick-edit">
<% if can_edit_or_delete?(banner) %>
<ul class="nav nav-pills">
<li>
<a data-title="Edit Banner" data-id="<%= banner.id.to_s %>" data-fx="<%= banner.ad_fx %>" data-form="<%= banner.data_attribute_hash.to_s %>" class="open-slide" href="#">Edit</a>
</li>
<li>
<a href="/admin/ad_banners/<%= banner.id.to_s %>" data-method="delete" data-confirm="Are you sure?" ><%= t(:delete_) %></a>
</li>
</ul>
<% end %>
</div>
</td>
<td><%= banner.ad_fx %></td>
<td><%= banner.timeout %></td>
<td><%= banner.speed %></td>
<td><%= banner.size %></td>
<td><%= banner.preview_link %></td>
</tr>
<% end %>
</tbody>
</table>