diff options
| author | hukl <contact@smyck.org> | 2009-02-17 21:56:20 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-17 21:56:20 +0100 |
| commit | 0b8cfc272d883e7865461d8ce05cd5c6aabec90e (patch) | |
| tree | 9c7032a704d6806c8839b32854e110399fc0f6ff /app | |
| parent | ea8c12c74c332f6b4c12f3e582baf3cbe901e87d (diff) | |
a little style here and there
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/nodes/index.html.erb | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index c6c2633..5f913e9 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb | |||
| @@ -1,19 +1,24 @@ | |||
| 1 | <h1>Nodes</h1> | 1 | <h1>Nodes</h1> |
| 2 | 2 | ||
| 3 | <%= will_paginate @nodes %> | 3 | <%= will_paginate @nodes %> |
| 4 | 4 | <p> | |
| 5 | <table id="node_table"> | 5 | <table id="node_table"> |
| 6 | <% @nodes.each do |node| %> | 6 | <tr> |
| 7 | <tr> | 7 | <th class="title">Title</th> |
| 8 | <td><%= link_to node.unique_name, node_path(node) %></td> | 8 | <th class="path">Path</th> |
| 9 | <td><%= node.head.title if node.head %></td> | 9 | <th class="actions">Actions</th> |
| 10 | <td> | 10 | </tr> |
| 11 | <%= link_to 'Show', node_path(node) %> | 11 | <% @nodes.each do |node| %> |
| 12 | <%= link_to 'Edit', edit_node_path(node) %> | 12 | <tr class="<%= cycle("even", "odd") %>"> |
| 13 | <%= link_to 'Destroy', node, :method => :delete %> | 13 | <td><%= node.head.title if node.head %></td> |
| 14 | </td> | 14 | <td><%= node.unique_name %></td> |
| 15 | </tr> | 15 | <td> |
| 16 | <% end %> | 16 | <%= link_to 'Show', node_path(node) %> |
| 17 | </table> | 17 | <%= link_to 'Edit', edit_node_path(node) %> |
| 18 | 18 | <%= link_to 'Destroy', node, :method => :delete %> | |
| 19 | <%= will_paginate @nodes %> | 19 | </td> |
| 20 | </tr> | ||
| 21 | <% end %> | ||
| 22 | </table> | ||
| 23 | </p> | ||
| 24 | <%= will_paginate @nodes %> \ No newline at end of file | ||
