summaryrefslogtreecommitdiff
path: root/app/views/nodes/index.html.erb
blob: 5f913e99e38a4bc50161be307a5a2a6153b59d0a (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
<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>
    </tr>
    <% @nodes.each do |node| %>
    <tr class="<%= cycle("even", "odd") %>">
      <td><%= node.head.title if node.head %></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 %>
      </td>
    </tr>
    <% end %>
  </table>
</p>
<%= will_paginate @nodes %>