summaryrefslogtreecommitdiffstats
path: root/app/views/wiki
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-04-27 03:31:22 +0000
committerGo MAEDA <maeda@farend.jp>2019-04-27 03:31:22 +0000
commit5e64b4aa67b78fce43f25f8740ca55318612b134 (patch)
tree3c2b8ca66c99d7bc536879db983c46bad8a0d67f /app/views/wiki
parent40dd389fdcdf63785139bf5426451e041b7d7851 (diff)
downloadredmine-5e64b4aa67b78fce43f25f8740ca55318612b134.tar.gz
redmine-5e64b4aa67b78fce43f25f8740ca55318612b134.zip
Show locked badge for protected pages (#9634).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18085 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki')
-rw-r--r--app/views/wiki/show.html.erb11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb
index 93a358346..92f86e843 100644
--- a/app/views/wiki/show.html.erb
+++ b/app/views/wiki/show.html.erb
@@ -82,12 +82,15 @@
</div>
</fieldset>
-<% if User.current.allowed_to?(:view_wiki_edits, @project) %>
<p class="wiki-update-info">
- <%= wiki_content_update_info(@content) %>
- · <%= link_to l(:label_x_revisions, :count => @content.version), {:action => 'history', :id => @page.title} %>
+ <% if User.current.allowed_to?(:view_wiki_edits, @project) %>
+ <%= wiki_content_update_info(@content) %>
+ · <%= link_to l(:label_x_revisions, :count => @content.version), {:action => 'history', :id => @page.title} %>
+ <% end %>
+ <% if @page.protected? %>
+ <span class="badge badge-status-locked"><%= l('status_locked') %></span>
+ <% end %>
</p>
-<% end %>
<% other_formats_links do |f| %>
<%= f.link_to 'PDF', :url => {:id => @page.title, :version => params[:version]} %>