2014-07-21 06:36:17 +00:00
|
|
|
<script>
|
2014-07-28 07:09:27 +00:00
|
|
|
if(document.querySelectorAll("#orbit-bar").length==0) location.reload();
|
2014-07-21 06:36:17 +00:00
|
|
|
</script>
|
|
|
|
|
2014-05-14 11:52:06 +00:00
|
|
|
<table class="table main-list">
|
|
|
|
<thead>
|
|
|
|
<tr class="sort-header">
|
|
|
|
<% @table_fields.each do |f| %>
|
|
|
|
<%= thead(f) %>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @archives.each do |archive| %>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<%= archive.status_for_table %>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<%= archive.category.title %>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="#" target="_blank"><%= archive.title %></a>
|
|
|
|
<div class="quick-edit">
|
|
|
|
<ul class="nav nav-pills">
|
2014-07-31 12:40:44 +00:00
|
|
|
<% if can_edit_or_delete?(archive) %>
|
2014-05-14 11:52:06 +00:00
|
|
|
<li><a href="/<%= I18n.locale.to_s %>/admin/archive_files/<%= archive.id.to_s %>/edit"><%= t(:edit) %></a></li>
|
|
|
|
<li><a href="/admin/archive_files/<%= archive.id.to_s %>" data-method="delete" data-confirm="Are you sure?"><%= t(:delete_) %></a></li>
|
2014-07-31 12:40:44 +00:00
|
|
|
<% end %>
|
2014-05-14 11:52:06 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
2014-07-04 07:54:11 +00:00
|
|
|
</table>
|
|
|
|
|
|
|
|
<%=
|
|
|
|
content_tag :div, class: "bottomnav clearfix" do
|
|
|
|
content_tag :div, paginate(@archives), class: "pagination pagination-centered"
|
|
|
|
end
|
|
|
|
%>
|