diff options
| author | hukl <contact@smyck.org> | 2009-10-07 23:36:03 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-07 23:36:03 +0200 |
| commit | 262f4e0c2abfefbd6965358fdfd9a8c332a38d57 (patch) | |
| tree | 91055edbbbec337ffd8745239b9d3ccdd8aebb9a /app/views/nodes | |
| parent | d3271f55b56e0fb5f73cf5691f90be9370d85d80 (diff) | |
refactored revsions controller to act as a nested resource of nodes. boy that cleaned up some stuff quite a bit. also having tests for that is just feeling great
Diffstat (limited to 'app/views/nodes')
| -rw-r--r-- | app/views/nodes/edit.html.erb | 2 | ||||
| -rw-r--r-- | app/views/nodes/index.html.erb | 2 | ||||
| -rw-r--r-- | app/views/nodes/show.html.erb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index 0635dac..0063dd9 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | <%= link_to 'Show', @node %> | 3 | <%= link_to 'Show', @node %> |
| 4 | <%= link_to 'Preview', preview_page_path(@draft) %> | 4 | <%= link_to 'Preview', preview_page_path(@draft) %> |
| 5 | <%= link_to 'Publish', publish_node_path, :method => :put, :confirm => "Publish this draft?" %> | 5 | <%= link_to 'Publish', publish_node_path, :method => :put, :confirm => "Publish this draft?" %> |
| 6 | <%= link_to 'Revisions', revision_path(params[:id]) %> | 6 | <%= link_to 'Revisions', node_revisions_path(@node) %> |
| 7 | <% end %> | 7 | <% end %> |
| 8 | 8 | ||
| 9 | <div id="page_editor"> | 9 | <div id="page_editor"> |
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index 0603c08..d78a997 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | </td> | 21 | </td> |
| 22 | <td class="actions"> | 22 | <td class="actions"> |
| 23 | <%= link_to 'show', node_path(node) %> | 23 | <%= link_to 'show', node_path(node) %> |
| 24 | <%= link_to 'Revisions', :controller => :revisions, :action => :show, :id => node.id %> | 24 | <%= link_to 'Revisions', node_revisions_path(node) %> |
| 25 | <%# link_to 'Destroy', node, :method => :delete, :confirm => "Are you sure you want to delete this node?" %> | 25 | <%# link_to 'Destroy', node, :method => :delete, :confirm => "Are you sure you want to delete this node?" %> |
| 26 | <%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %> | 26 | <%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %> |
| 27 | </td> | 27 | </td> |
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index 8d8a985..8f56c7c 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <% content_for :subnavigation do %> | 1 | <% content_for :subnavigation do %> |
| 2 | <%= link_to 'Edit', edit_node_path(@node), :class => "unselected" %> | 2 | <%= link_to 'Edit', edit_node_path(@node), :class => "unselected" %> |
| 3 | <%= link_to 'Preview', preview_page_path(@page) %> | 3 | <%= link_to 'Preview', preview_page_path(@page) %> |
| 4 | <%= link_to 'Revisions', revision_path(params[:id]) %> | 4 | <%= link_to 'Revisions', node_revisions_path(@node) %> |
| 5 | <%= link_to 'Unlock', unlock_node_path(@node), :method => :put, :confirm => "Are you sure you want to unlock?" %> | 5 | <%= link_to 'Unlock', unlock_node_path(@node), :method => :put, :confirm => "Are you sure you want to unlock?" %> |
| 6 | <% end %> | 6 | <% end %> |
| 7 | 7 | ||
