summaryrefslogtreecommitdiff
path: root/app/views/admin/index.html.erb
blob: c5bb5de5112da34537165f3c1ca3cc7c38d66176 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<div id="draft_list">
  <h2>Drafts</h2>
  <table>
    <tr>
      <th>ID</th>
      <th>Title</th>
      <th>Path</th>
      <th>Locked by</th>
    </tr>
    <% @drafts.each do |draft| %>
    <tr>
      <td><%= draft.id %></td>
      <td><%= draft.title %></td>
      <td><%= draft.node.unique_name %></td>
      <td><%= draft.user.login rescue "" %></td>
      <td><%= link_to 'Show', node_path(draft.node) %></td>
      <td><%= link_to "Diff revisions", :controller => :revisions, :action => :diff, :id => draft.node.id %></td>
      <td><%= link_to "Publish", publish_node_path(draft.node), :method => :put, :confirm => "Do you really want to publish?" %></td>
    </tr>
    <% end %>
  </table>
</div>