diff options
Diffstat (limited to 'app/views/nodes/index.html.erb')
| -rw-r--r-- | app/views/nodes/index.html.erb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index 5f913e99..533204d9 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb | |||
| @@ -10,7 +10,11 @@ | |||
| 10 | </tr> | 10 | </tr> |
| 11 | <% @nodes.each do |node| %> | 11 | <% @nodes.each do |node| %> |
| 12 | <tr class="<%= cycle("even", "odd") %>"> | 12 | <tr class="<%= cycle("even", "odd") %>"> |
| 13 | <td><%= node.head.title if node.head %></td> | 13 | <td> |
| 14 | <strong> | ||
| 15 | <%= truncate(node.head.title, 50) if node.head %> | ||
| 16 | </strong> | ||
| 17 | </td> | ||
| 14 | <td><%= node.unique_name %></td> | 18 | <td><%= node.unique_name %></td> |
| 15 | <td> | 19 | <td> |
| 16 | <%= link_to 'Show', node_path(node) %> | 20 | <%= link_to 'Show', node_path(node) %> |
| @@ -21,4 +25,8 @@ | |||
| 21 | <% end %> | 25 | <% end %> |
| 22 | </table> | 26 | </table> |
| 23 | </p> | 27 | </p> |
| 24 | <%= will_paginate @nodes %> \ No newline at end of file | 28 | <%= will_paginate @nodes %> |
| 29 | |||
| 30 | <% content_for :menu do %> | ||
| 31 | <%= link_to 'Create', new_node_path %> | ||
| 32 | <% end %> \ No newline at end of file | ||
