28 lines
777 B
Plaintext
28 lines
777 B
Plaintext
<table class="table main-list">
|
|
<thead>
|
|
<tr class="sort-header">
|
|
<% @table_fields.each do |f| %>
|
|
<%= thead(f) %>
|
|
<% end %>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @pages.each do |page| %>
|
|
<tr>
|
|
<td>
|
|
<a href="/<%= I18n.locale %><%= page.url %>" target="_blank"><%= page.name %></a>
|
|
<div class="quick-edit">
|
|
<ul class="nav nav-pills">
|
|
<li><a href="/admin/page_contents/new?page_id=<%= page.id.to_s %>"><%= t(:edit) %></a></li>
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
<td><a href="/admin/page_contents/<%= page.id.to_s %>/view" ><%= page.page_contexts.last.version %></a></td>
|
|
<td><%= format_value page.page_contexts.last.updated_at %></td>
|
|
<td><%= User.find(page.page_contexts.last.update_user_id).user_name %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|