blob: 526aa886b1e4a20c90e86229d75fa7d2f7e84205 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
<p id="overview_toggle">
<a href="#" id="recent_changes_toggle" class="button">recent changes</a>
<a href="#" id="current_drafts_toggle" class="button">current drafts</a>
</p>
<div id="recent_changes_table">
<h1>Recent Changes</h1>
<table class="node_table">
<tr class="header">
<th class="node_id">ID</th>
<th class="title">Title</th>
<th class="actions">Actions</th>
<th class="editor">Locked by</th>
<th class="revision">Rev.</th>
</tr>
<% @recent_changes.each do |node| %>
<tr class="<%= cycle("even", "odd") %>">
<td class="node_id"><%= node.id %></td>
<td class="title">
<h4><%= link_to title_for_node(node), node_path(node) %></h4>
<p><%= link_to_path(node.unique_name, node.unique_name) %></p>
</td>
<td class="actions">
<%= link_to 'show', node_path(node) %>
<%= link_to 'Revisions', node_revisions_path(node) %>
</td>
<td>
<%= node.lock_owner.login if node.lock_owner %>
</td>
<td>
<%= node.draft ? node.draft.revision : node.head.revision %>
</td>
</tr>
<% end %>
</table>
</div>
<div id="current_drafts_table">
<h1>Current Drafts</h1>
<table class="node_table">
<tr class="header">
<th class="node_id">ID</th>
<th class="title">Title</th>
<th class="actions">Actions</th>
<th class="editor">Locked by</th>
<th class="revision">Rev.</th>
</tr>
<% @drafts.each do |node| %>
<tr class="<%= cycle("even", "odd") %>">
<td class="node_id"><%= node.id %></td>
<td class="title">
<h4><%= link_to title_for_node(node), node_path(node) %></h4>
<p><%= link_to_path(node.unique_name, node.unique_name) %></p>
</td>
<td class="actions">
<%= link_to 'show', node_path(node) %>
<%= link_to 'Revisions', node_revisions_path(node) %>
</td>
<td>
<%= node.lock_owner.login if node.lock_owner %>
</td>
<td>
<%= node.draft ? node.draft.revision : node.head.revision %>
</td>
</tr>
<% end %>
</table>
</div>
|