24 lines
645 B
Plaintext
24 lines
645 B
Plaintext
- revert_button = capture do
|
|
= link_to t("wiki.revert_page#{action_name == 'revert' ? '' : 's'}"), '#', :class => "gollum-revert-button button width100"
|
|
|
|
- if action_name != 'revert'
|
|
= 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
|
|
= revert_button if can? :write, @project
|
|
|
|
%br
|
|
%br
|
|
|
|
= render :partial => 'diff_data', :collection => @diffs, :as => :diff
|
|
.spacer
|
|
|
|
%br
|
|
%br
|
|
|
|
- if action_name != 'revert'
|
|
= revert_button if can? :write, @project
|
|
|
|
%br
|
|
%br
|
|
|
|
= link_to t("wiki.back_to_top"), '#wiki'
|