##// END OF EJS Templates
Do not show section edit links for wiki page history (#2222)....
Jean-Philippe Lang -
r7710:2770e285358a
parent child
Show More
@@ -85,6 +85,7 class WikiController < ApplicationController
85 end
85 end
86 end
86 end
87 @editable = editable?
87 @editable = editable?
88 @sections_editable = @editable && User.current.allowed_to?(:edit_wiki_pages, @page.project) && params[:version].nil?
88 render :action => 'show'
89 render :action => 'show'
89 end
90 end
90
91
@@ -1,4 +1,4
1 <div class="wiki wiki-page">
1 <div class="wiki wiki-page">
2 <%= textilizable content, :text, :attachments => content.page.attachments,
2 <%= textilizable content, :text, :attachments => content.page.attachments,
3 :edit_section_links => (content.is_a?(WikiContent) && @editable && User.current.allowed_to?(:edit_wiki_pages, @page.project) && {:controller => 'wiki', :action => 'edit', :project_id => @page.project, :id => @page.title}) %>
3 :edit_section_links => (@sections_editable && {:controller => 'wiki', :action => 'edit', :project_id => @page.project, :id => @page.title}) %>
4 </div>
4 </div>
General Comments 0
You need to be logged in to leave comments. Login now