pagecontent/app/views/admin/page_contents/view.html.erb

29 lines
654 B
Plaintext

<table class="table main-list">
<thead>
<tr class="sort-header">
<% @table_fields.each do |f| %>
<%= thead(f) %>
<% end %>
</tr>
</thead>
<tbody>
<% @page_contexts.each do |page| %>
<% if page.version > 0 %>
<tr>
<td>
<%= @page.name %>
<div class="quick-edit">
<ul class="nav nav-pills">
<li><a href="/admin/page_contents/<%= page.id.to_s %>"><%= t(:show) %></a></li>
</ul>
</div>
</td>
<td><%= page.version %></td>
<td><%= format_value page.updated_at %></td>
<td><%= User.find(page.update_user_id).user_name rescue nil %></td>
</tr>
<% end %>
<% end %>
</tbody>
</table>