2012-01-28 12:10:43 +00:00
|
|
|
- revert_button = capture do
|
|
|
|
= link_to t("layout.wiki.revert_page#{action_name == 'revert' ? '' : 's'}"), '#', :class => "gollum-revert-button"
|
|
|
|
|
2012-01-19 13:49:32 +00:00
|
|
|
#compare-content
|
2012-01-19 23:04:11 +00:00
|
|
|
- if action_name != 'revert'
|
2012-01-19 13:49:32 +00:00
|
|
|
%ul.actions
|
|
|
|
%li.minibutton
|
2012-01-19 23:04:11 +00:00
|
|
|
= form_tag revert_path(@project, @versions[0][0..6], @versions[1][0..6], @name),
|
2012-01-19 13:49:32 +00:00
|
|
|
:name => "gollum-revert", :id => "gollum-revert-form" do
|
2012-01-28 12:10:43 +00:00
|
|
|
= revert_button
|
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
|
|
|
|
|
|
|
#gollum-footer
|
|
|
|
%ul.actions
|
|
|
|
- if action_name != 'revert'
|
|
|
|
%li.minibutton
|
2012-01-28 12:10:43 +00:00
|
|
|
= revert_button
|
2012-01-19 13:49:32 +00:00
|
|
|
%li.minibutton= link_to t("layout.wiki.back_to_top"), '#wiki'
|