app/views/admin/scans/index.html.erb
<%- model_class = Scan -%>
<div class="page-header">
<h1><%=t '.title', :default => model_class.model_name.human.pluralize.titleize %></h1>
</div>
<table class="table table-striped">
<thead>
<tr>
<th><%= model_class.human_attribute_name(:id) %></th>
<th><%= model_class.human_attribute_name(:state) %></th>
<th><%= model_class.human_attribute_name(:created_at) %></th>
<th><%=t '.actions', :default => t("helpers.actions") %></th>
</tr>
</thead>
<tbody>
<% @scans.each do |scan| %>
<tr>
<td><%= link_to scan.id, scan_path(scan) %></td>
<td><%= scan.state %></td>
<td><%=l scan.created_at %></td>
<td>
<%= link_to t('.destroy', :default => t("helpers.links.destroy")),
admin_scan_path(scan),
:method => :delete,
:data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
:class => 'btn btn-mini btn-danger' %>
</td>
</tr>
<% end %>
</tbody>
</table>