summaryrefslogtreecommitdiff
path: root/app/views/admin/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/index.html.erb')
-rw-r--r--app/views/admin/index.html.erb25
1 files changed, 3 insertions, 22 deletions
diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb
index b40f92a0..cf337743 100644
--- a/app/views/admin/index.html.erb
+++ b/app/views/admin/index.html.erb
@@ -1,22 +1,3 @@
1<div id="draft_list"> 1<%= render :partial => 'drafts' %>
2 <h2>Drafts</h2> 2
3 <table> 3<%= render :partial => 'recent_changes' %> \ No newline at end of file
4 <tr>
5 <th>ID</th>
6 <th>Title</th>
7 <th>Path</th>
8 <th>Locked by</th>
9 </tr>
10 <% @drafts.each do |draft| %>
11 <tr>
12 <td><%= draft.id %></td>
13 <td><%= draft.title %></td>
14 <td><%= draft.node.unique_name %></td>
15 <td><%= draft.node.lock_owner.login rescue "" %></td>
16 <td><%= link_to 'Show', node_path(draft.node) %></td>
17 <td><%= link_to "Diff revisions", :controller => :revisions, :action => :diff, :id => draft.node.id %></td>
18 <td><%= link_to "Publish", publish_node_path(draft.node), :method => :put, :confirm => "Do you really want to publish?" %></td>
19 </tr>
20 <% end %>
21 </table>
22</div> \ No newline at end of file