summaryrefslogtreecommitdiff
path: root/app/views/admin
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/index.html.erb13
1 files changed, 10 insertions, 3 deletions
diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb
index 77b45f4..c67ccb3 100644
--- a/app/views/admin/index.html.erb
+++ b/app/views/admin/index.html.erb
@@ -82,9 +82,9 @@
82</div> 82</div>
83 83
84<div id="current_drafts_table"> 84<div id="current_drafts_table">
85 85
86 <h2>Current Drafts (<%= @drafts_count %>)</h2> 86 <h2>Current Drafts & Autosaves (<%= @drafts_count %>)</h2>
87 87
88 <table class="node_table"> 88 <table class="node_table">
89 <tr class="header"> 89 <tr class="header">
90 <th class="node_id">ID</th> 90 <th class="node_id">ID</th>
@@ -92,6 +92,7 @@
92 <th class="actions">Actions</th> 92 <th class="actions">Actions</th>
93 <th class="editor">Locked by</th> 93 <th class="editor">Locked by</th>
94 <th class="revision">Rev.</th> 94 <th class="revision">Rev.</th>
95 <th class="autosave">Autosave</th>
95 </tr> 96 </tr>
96 <% @drafts.each do |node| %> 97 <% @drafts.each do |node| %>
97 <tr class="<%= cycle("even", "odd") %>"> 98 <tr class="<%= cycle("even", "odd") %>">
@@ -103,6 +104,9 @@
103 <td class="actions"> 104 <td class="actions">
104 <%= link_to 'show', node_path(node) %> 105 <%= link_to 'show', node_path(node) %>
105 <%= link_to 'Revisions', node_revisions_path(node) %> 106 <%= link_to 'Revisions', node_revisions_path(node) %>
107 <% if pair = node.available_layer_pairs.last %>
108 <%= link_to 'diff', diff_node_revisions_path(node, start_revision: pair.first, end_revision: pair.last) %>
109 <% end %>
106 </td> 110 </td>
107 <td> 111 <td>
108 <%= node.lock_owner.login if node.lock_owner %> 112 <%= node.lock_owner.login if node.lock_owner %>
@@ -110,6 +114,9 @@
110 <td> 114 <td>
111 <%= link_to ( node.draft ? node.draft.revision : (node.head ? node.head.revision : "EMPTY" ) ), node_revisions_path(node) %> 115 <%= link_to ( node.draft ? node.draft.revision : (node.head ? node.head.revision : "EMPTY" ) ), node_revisions_path(node) %>
112 </td> 116 </td>
117 <td class="autosave">
118 <%= node.autosave ? "unsaved changes" : "" %>
119 </td>
113 </tr> 120 </tr>
114 <% end %> 121 <% end %>
115 </table> 122 </table>