summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/nodes/index.html.erb18
1 files changed, 15 insertions, 3 deletions
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb
index 6cbf76d..c6c2633 100644
--- a/app/views/nodes/index.html.erb
+++ b/app/views/nodes/index.html.erb
@@ -1,7 +1,19 @@
1<h1>Nodes</h1> 1<h1>Nodes</h1>
2 2
3<ul> 3<%= will_paginate @nodes %>
4
5<table id="node_table">
4 <% @nodes.each do |node| %> 6 <% @nodes.each do |node| %>
5 <li><%= link_to node.unique_name, node_path(node) %></li> 7 <tr>
8 <td><%= link_to node.unique_name, node_path(node) %></td>
9 <td><%= node.head.title if node.head %></td>
10 <td>
11 <%= link_to 'Show', node_path(node) %>
12 <%= link_to 'Edit', edit_node_path(node) %>
13 <%= link_to 'Destroy', node, :method => :delete %>
14 </td>
15 </tr>
6 <% end %> 16 <% end %>
7</ul> \ No newline at end of file 17</table>
18
19<%= will_paginate @nodes %>