summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-03-21 15:00:50 +0100
committerhukl <contact@smyck.org>2009-03-21 15:00:50 +0100
commit40bdc8384a33019c1771fbad888525505f61aa7c (patch)
tree2fcb3593548c42f1a34b0b659d7ca7de09222ecc /app
parentcc39dc70e4c03e72bb9d72f3cb0d49ea165e303c (diff)
cleaned up the node index view
Diffstat (limited to 'app')
-rw-r--r--app/views/nodes/index.html.erb27
1 files changed, 13 insertions, 14 deletions
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb
index ad60498..103617c 100644
--- a/app/views/nodes/index.html.erb
+++ b/app/views/nodes/index.html.erb
@@ -6,33 +6,32 @@
6<%= will_paginate @nodes %> 6<%= will_paginate @nodes %>
7<p> 7<p>
8 <table id="node_table"> 8 <table id="node_table">
9 <tr> 9 <tr class="table_headers">
10 <th class="node_id">ID</th>
10 <th class="title">Title</th> 11 <th class="title">Title</th>
11 <th class="path">Path</th>
12 <th class="actions">Actions</th> 12 <th class="actions">Actions</th>
13 <th class="editor">Locked by</th> 13 <th class="editor">Locked by</th>
14 <th class="revision">Rev.</th> 14 <th class="revision">Rev.</th>
15 </tr> 15 </tr>
16 <% @nodes.each do |node| %> 16 <% @nodes.each do |node| %>
17 <tr class="<%= cycle("even", "odd") %>"> 17 <tr class="<%= cycle("even", "odd") %>">
18 <td> 18 <td><%= node.id %></td>
19 <strong> 19 <td class="title">
20 <%= title_for_node node %> 20 <h4><%= title_for_node node %></h4>
21 </strong> 21 <p><%= node.unique_name %></p>
22 </td> 22 </td>
23 <td><%= node.unique_name %></td> 23 <td class="actions">
24 <td> 24 <%= link_to 'Show', node_path(node) %>
25 <%= link_to 'Show', node_path(node) %> 25 <%= link_to 'Edit', edit_node_path(node) %>
26 <%= link_to 'Edit', edit_node_path(node) %> 26 <%= link_to 'Revisions', :controller => :revisions, :action => :show, :id => node.id %>
27 <%= link_to 'Revision', :controller => :revisions, :action => :show, :id => node.id %> 27 <%# link_to 'Destroy', node, :method => :delete, :confirm => "Are you sure you want to delete this node?" %>
28 <%# link_to 'Destroy', node, :method => :delete, :confirm => "Are you sure you want to delete this node?" %> 28 <%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %>
29 <%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %>
30 </td> 29 </td>
31 <td> 30 <td>
32 <%= "#{node.draft.user.login}" if node.draft && node.draft.user %> 31 <%= "#{node.draft.user.login}" if node.draft && node.draft.user %>
33 </td> 32 </td>
34 <td> 33 <td>
35 <%= node.pages.length %> 34 <%= node.draft ? node.draft.revision : node.head.revision %>
36 </td> 35 </td>
37 </tr> 36 </tr>
38 <% end %> 37 <% end %>