diff options
| author | hukl <contact@smyck.org> | 2009-04-13 20:37:16 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-04-13 20:37:16 +0200 |
| commit | 06dee9ab33701e40a5adfcf87767fb807621fa32 (patch) | |
| tree | 73a7fc1307dcd2f9e41a42d575511bda1b5c0296 /app/views/revisions/diff.html.erb | |
| parent | 22aa8523ef5864d736faf6595ef258adc0689703 (diff) | |
beautified the revision and diff interface. so pretty and so functional. i'm happy
Diffstat (limited to 'app/views/revisions/diff.html.erb')
| -rw-r--r-- | app/views/revisions/diff.html.erb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/app/views/revisions/diff.html.erb b/app/views/revisions/diff.html.erb index a8a0276..d8ba6d2 100644 --- a/app/views/revisions/diff.html.erb +++ b/app/views/revisions/diff.html.erb | |||
| @@ -1,8 +1,14 @@ | |||
| 1 | <% content_for :subnavigation do %> | ||
| 2 | <%= link_to 'Diff', :action => :diff, :id => params[:id] %> | ||
| 3 | <%= link_to 'Edit', edit_node_path(@node) %> | ||
| 4 | <%= link_to 'Revisions', revision_path(params[:id]) %> | ||
| 5 | <% end %> | ||
| 6 | |||
| 1 | <h1>Revisions#diff</h1> | 7 | <h1>Revisions#diff</h1> |
| 2 | 8 | ||
| 3 | <% form_tag url_for(:action => :diff), :method => :get do %> | 9 | <% form_tag diff_revision_path do %> |
| 4 | <%= select_tag :start, options_for_select(@node.pages.map{|x| x.revision}, params[:start].to_i) %> | 10 | <%= select_tag :start_revision, options_for_select(@node.pages.map{|x| x.revision}, params[:start_revision].to_i) %> |
| 5 | <%= select_tag :end, options_for_select(@node.pages.map{|x| x.revision}, params[:end].to_i) %> | 11 | <%= select_tag :end_revision, options_for_select(@node.pages.map{|x| x.revision}, params[:end_revision].to_i) %> |
| 6 | <%= submit_tag 'Diff' %> | 12 | <%= submit_tag 'Diff' %> |
| 7 | <% end %> | 13 | <% end %> |
| 8 | 14 | ||
