links/app/views/admin/web_resources/index_table.html.erb

32 lines
923 B
Plaintext

<table class="table main-list">
<thead>
<tr class="sort-header">
<% @table_fields.each do |f| %>
<%= thead(f) %>
<% end %>
</tr>
</thead>
<tbody>
<% @links.each do |link| %>
<tr>
<td><%= link.status_for_table %></td>
<td><%= link.category.title %></td>
<td>
<a href="#" target="_blank"><%= link.title %></a>
<div class="quick-edit">
<ul class="nav nav-pills">
<li><a href="/admin/web_resources/<%=link.id.to_s%>/edit"><%= t(:edit) %></a></li>
<li><a href="#" class="delete text-error" rel="/admin/web_resources/<%=link.id.to_s%>"><%= t(:delete_) %></a></li>
</ul>
</div>
</td>
</tr>
<% end %>
</tbody>
</table>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(@links), class: "pagination pagination-centered"
end
%>