[refs #64] some template fixes
This commit is contained in:
parent
9730e5e095
commit
68c97b3a33
|
@ -7,7 +7,7 @@
|
|||
%li.minibutton
|
||||
= form_tag revert_path(@project, @versions[0][0..6], @versions[1][0..6], @name),
|
||||
:name => "gollum-revert", :id => "gollum-revert-form" do
|
||||
= revert_button
|
||||
= revert_button if can? :write, @project
|
||||
|
||||
= render :partial => 'diff_data', :collection => @diffs, :as => :diff
|
||||
.spacer
|
||||
|
@ -16,5 +16,5 @@
|
|||
%ul.actions
|
||||
- if action_name != 'revert'
|
||||
%li.minibutton
|
||||
= revert_button
|
||||
= revert_button if can? :write, @project
|
||||
%li.minibutton= link_to t("layout.wiki.back_to_top"), '#wiki'
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
%ul.clone-urls
|
||||
%li.http-clone-url.selected
|
||||
= link_to t("layout.wiki.clones.http"), git_repo_url(@project.wiki_repo_name),
|
||||
:'data-permissions' => (can? @project, :write) ? 'Read+Write' : 'Read'
|
||||
:'data-permissions' => (can? :write, @project) ? 'Read+Write' : 'Read'
|
||||
%input.url-field{:type => 'text', :spellcheck => 'false'}
|
||||
%p.url-description
|
||||
%strong
|
||||
|
|
Loading…
Reference in New Issue