2012-01-28 12:10:43 +00:00
|
|
|
- revert_button = capture do
|
2012-02-24 21:37:22 +00:00
|
|
|
= link_to t("wiki.revert_page#{action_name == 'revert' ? '' : 's'}"), '#', :class => "gollum-revert-button button width100"
|
2012-01-28 12:10:43 +00:00
|
|
|
|
2012-02-24 21:37:22 +00:00
|
|
|
- if action_name != 'revert'
|
2012-02-27 20:32:57 +00:00
|
|
|
= form_tag revert_path(@project, @versions.first[0..6], (@versions.size == 1) ? 'prev' : @versions.last[0..6], @name), :name => "gollum-revert", :id => "gollum-revert-form" do
|
2012-02-20 10:27:58 +00:00
|
|
|
= revert_button if can? :write, @project
|
|
|
|
|
|
|
|
%br
|
|
|
|
%br
|
2012-01-19 13:49:32 +00:00
|
|
|
|
2012-01-19 23:04:11 +00:00
|
|
|
= render :partial => 'diff_data', :collection => @diffs, :as => :diff
|
|
|
|
.spacer
|
2012-01-19 13:49:32 +00:00
|
|
|
|
2012-02-20 10:27:58 +00:00
|
|
|
%br
|
|
|
|
%br
|
|
|
|
|
|
|
|
- if action_name != 'revert'
|
|
|
|
= revert_button if can? :write, @project
|
|
|
|
|
|
|
|
%br
|
|
|
|
%br
|
|
|
|
|
2012-02-27 20:32:57 +00:00
|
|
|
= link_to t("wiki.back_to_top"), '#wiki'
|