diff options
| author | hukl <contact@smyck.org> | 2009-04-13 21:43:18 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-04-13 21:43:18 +0200 |
| commit | e4dd7a33a84d755f81fe5d07bcfb372f397f9cab (patch) | |
| tree | b4afee36f70a175545b26190da4a8384d0d654c3 /app | |
| parent | 381f45a8364f090fc5ad403b740646cdf4f9ccae (diff) | |
now the node index page is sexy too !
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/nodes/index.html.erb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index be63de3..b29b65d 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb | |||
| @@ -1,12 +1,12 @@ | |||
| 1 | <div id="subnavigation"> | 1 | <% content_for :subnavigation do %> |
| 2 | <%= link_to 'Create', new_node_path %> | 2 | <%= link_to 'Create', new_node_path %> |
| 3 | </div> | 3 | <% end %> |
| 4 | <h1>Nodes</h1> | 4 | <h1>Nodes</h1> |
| 5 | 5 | ||
| 6 | <%= will_paginate @nodes %> | 6 | <%= will_paginate @nodes %> |
| 7 | <p> | 7 | <p> |
| 8 | <table id="node_table"> | 8 | <table id="node_table"> |
| 9 | <tr class="table_headers"> | 9 | <tr class="header"> |
| 10 | <th class="node_id">ID</th> | 10 | <th class="node_id">ID</th> |
| 11 | <th class="title">Title</th> | 11 | <th class="title">Title</th> |
| 12 | <th class="actions">Actions</th> | 12 | <th class="actions">Actions</th> |
| @@ -17,12 +17,11 @@ | |||
| 17 | <tr class="<%= cycle("even", "odd") %>"> | 17 | <tr class="<%= cycle("even", "odd") %>"> |
| 18 | <td><%= node.id %></td> | 18 | <td><%= node.id %></td> |
| 19 | <td class="title"> | 19 | <td class="title"> |
| 20 | <h4><%= title_for_node node %></h4> | 20 | <h4><%= link_to title_for_node(node), edit_node_path(node) %></h4> |
| 21 | <p><%= node.unique_name %></p> | 21 | <p><%= link_to_path(node.unique_name, node.unique_path) %></p> |
| 22 | </td> | 22 | </td> |
| 23 | <td class="actions"> | 23 | <td class="actions"> |
| 24 | <%= link_to 'Show', node_path(node) %> | 24 | <%= link_to 'Preview', node_path(node) %> |
| 25 | <%= link_to 'Edit', edit_node_path(node) %> | ||
| 26 | <%= link_to 'Revisions', :controller => :revisions, :action => :show, :id => node.id %> | 25 | <%= link_to 'Revisions', :controller => :revisions, :action => :show, :id => node.id %> |
| 27 | <%# link_to 'Destroy', node, :method => :delete, :confirm => "Are you sure you want to delete this node?" %> | 26 | <%# link_to 'Destroy', node, :method => :delete, :confirm => "Are you sure you want to delete this node?" %> |
| 28 | <%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %> | 27 | <%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %> |
| @@ -39,6 +38,3 @@ | |||
| 39 | </p> | 38 | </p> |
| 40 | <%= will_paginate @nodes %> | 39 | <%= will_paginate @nodes %> |
| 41 | 40 | ||
| 42 | <% content_for :menu do %> | ||
| 43 | <%= link_to 'Create', new_node_path %> | ||
| 44 | <% end %> \ No newline at end of file | ||
