summaryrefslogtreecommitdiff
path: root/app/views/admin/_recent_changes.html.erb
blob: 300d088a5495ed8057510904b8642b890a282318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<h2>Recent Changes</h2>
<div id="draft_list">
  <table>
    <tr class="header">
      <th>Title</th>
      <th>path</th>
      <th>user</th>
      <th>date</th>
      <th></th>
    </tr>
    <% @recent_changes.each do |node| %>
    <tr>
      <td><%= truncated_title_for_node node %></td>
      <td><%= node.unique_name %></td>
      <td><%= node.draft.user.login rescue "" %></td>
      <td><%= node.updated_at.to_s(:db) %></td>
      <td class="actions">
        <%= link_to 'Show', node_path(node) %>
        <%= link_to "Revisions", revision_path(:id => node.id) %>
      </td>
    </tr>
    <% end %>
  </table>
</div>