summaryrefslogtreecommitdiff
path: root/app/views/nodes/index.html.erb
blob: c6c26333dc7192d40515cdf35248fdad040152af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<h1>Nodes</h1>

<%= will_paginate @nodes %>

<table id="node_table">
  <% @nodes.each do |node| %>
  <tr>
    <td><%= link_to node.unique_name, node_path(node) %></td>
    <td><%= node.head.title if node.head %></td>
    <td>
      <%= link_to 'Show',     node_path(node) %>
      <%= link_to 'Edit',     edit_node_path(node) %>
      <%= link_to 'Destroy',  node, :method => :delete %>
    </td>
  </tr>
  <% end %>
</table>

<%= will_paginate @nodes %>