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/revisions/diff.html.erb | |
| 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/revisions/diff.html.erb')
| -rw-r--r-- | app/views/revisions/diff.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/revisions/diff.html.erb b/app/views/revisions/diff.html.erb index 9428b7a..f7ad79c 100644 --- a/app/views/revisions/diff.html.erb +++ b/app/views/revisions/diff.html.erb | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | <% content_for :subnavigation do %> | 1 | <% content_for :subnavigation do %> |
| 2 | <%= link_to 'Edit', edit_node_path(@node) %> | 2 | <%= link_to 'Edit', edit_node_path(@node) %> |
| 3 | <%= link_to 'Revisions', revision_path(params[:id]) %> | 3 | <%= link_to 'Revisions', node_revisions_path(@node) %> |
| 4 | <% end %> | 4 | <% end %> |
| 5 | 5 | ||
| 6 | <h1>Revisions#diff</h1> | 6 | <h1>Revisions#diff</h1> |
| 7 | 7 | ||
| 8 | <% form_tag diff_revision_path do %> | 8 | <% form_tag diff_node_revisions_path do %> |
| 9 | <%= select_tag :start_revision, options_for_select(@node.pages.map{|x| x.revision}, params[:start_revision].to_i) %> | 9 | <%= select_tag :start_revision, options_for_select(@node.pages.map{|x| x.revision}, params[:start_revision].to_i) %> |
| 10 | <%= select_tag :end_revision, options_for_select(@node.pages.map{|x| x.revision}, params[:end_revision].to_i) %> | 10 | <%= select_tag :end_revision, options_for_select(@node.pages.map{|x| x.revision}, params[:end_revision].to_i) %> |
| 11 | <%= submit_tag 'Diff' %> | 11 | <%= submit_tag 'Diff' %> |
