35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
|
<table class="table table-striped table-hover main-list">
|
||
|
<thead>
|
||
|
<tr class="sort-header">
|
||
|
<% @table_fields.each do |f| %>
|
||
|
<%= thead(f) %>
|
||
|
<% end %>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% @pages.each do |page| %>
|
||
|
<tr>
|
||
|
<td><%= page.page_id %></td>
|
||
|
<td>
|
||
|
<a href="/<%= I18n.locale %><%= page.url %>" target="_blank"><%= page.name %></a>
|
||
|
<div class="quick-edit">
|
||
|
<ul class="nav nav-pills">
|
||
|
<% if can_edit_or_delete?(page) %>
|
||
|
<li><a href="/admin/page_contents/new?page_id=<%= page.id.to_s %>"><%= t(:edit) %></a></li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</td>
|
||
|
<td><a href="/admin/page_contents/<%= page.id.to_s %>/view" ><%= page.page_contexts.last.version rescue nil %></a></td>
|
||
|
<td><%= format_value page.page_contexts.last.updated_at rescue nil %></td>
|
||
|
<td><%= User.find(page.page_contexts.last.update_user_id).user_name rescue nil %></td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<%=
|
||
|
content_tag :div, class: "bottomnav clearfix" do
|
||
|
content_tag :div, paginate(@pages), class: "pagination pagination-centered"
|
||
|
end
|
||
|
%>
|