summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-05-29 07:30:54 +0000
committerGo MAEDA <maeda@farend.jp>2021-05-29 07:30:54 +0000
commit0b8c23f021834f0f03f799b789dcc690f59c84d4 (patch)
tree46f0dd712e398bc3fb09717585a3abeed70083de /app
parentf217037771b2ca84f695fbd02f14098933c4f3e1 (diff)
downloadredmine-0b8c23f021834f0f03f799b789dcc690f59c84d4.tar.gz
redmine-0b8c23f021834f0f03f799b789dcc690f59c84d4.zip
Ability to add watchers to Wiki pages (#7652).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21016 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/wiki/show.html.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb
index a7104967d..6a0245809 100644
--- a/app/views/wiki/show.html.erb
+++ b/app/views/wiki/show.html.erb
@@ -100,6 +100,12 @@
<% content_for :sidebar do %>
<%= render :partial => 'sidebar' %>
+ <% if User.current.allowed_to?(:add_wiki_page_watchers, @project) ||
+ (@page.watchers.present? && User.current.allowed_to?(:view_wiki_page_watchers, @project)) %>
+ <div id="watchers">
+ <%= render :partial => 'watchers/watchers', :locals => {:watched => @page} %>
+ </div>
+ <% end %>
<% end %>
<% content_for :header_tags do %>