blob: a2a42b1a2f2fe0857103c3f91a70fc44488ec5b5 (
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
|
<div id="subnavigation">
<%= link_to 'Create', new_node_path %>
</div>
<h1>Nodes</h1>
<%= will_paginate @nodes %>
<p>
<table id="node_table">
<tr>
<th class="title">Title</th>
<th class="path">Path</th>
<th class="actions">Actions</th>
<th class="editor">Locked by</th>
<th class="revision">Rev.</th>
</tr>
<% @nodes.each do |node| %>
<tr class="<%= cycle("even", "odd") %>">
<td>
<strong>
<%= title_for_node node %>
</strong>
</td>
<td><%= node.unique_name %></td>
<td>
<%= link_to 'Show', node_path(node) %>
<%= link_to 'Edit', edit_node_path(node) %>
<%= link_to 'Destroy', node, :method => :delete, :confirm => "Are you sure you want to delete this node?" %>
<%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %>
</td>
<td>
<%= "#{node.draft.user.login}" if node.draft && node.draft.user %>
</td>
<td>
<%= node.head.revision if node.head %>
</td>
</tr>
<% end %>
</table>
</p>
<%= will_paginate @nodes %>
<% content_for :menu do %>
<%= link_to 'Create', new_node_path %>
<% end %>
|