diff options
author | Go MAEDA <maeda@farend.jp> | 2021-03-15 04:55:56 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-03-15 04:55:56 +0000 |
commit | df259f094f0783976fe5425132084ef9c7af245f (patch) | |
tree | 927cd711bc135e2e34f01ea0c7c36f790c40f4f9 /app/views/messages | |
parent | dacbf77340db308f2e275c4114f90aa5870757e0 (diff) | |
download | redmine-df259f094f0783976fe5425132084ef9c7af245f.tar.gz redmine-df259f094f0783976fe5425132084ef9c7af245f.zip |
Ability to add watchers to forum threads (#3390).
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@20787 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/messages')
-rw-r--r-- | app/views/messages/show.html.erb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb index b8abf0321..6c902d087 100644 --- a/app/views/messages/show.html.erb +++ b/app/views/messages/show.html.erb @@ -90,3 +90,11 @@ <% end %> <% html_title @topic.subject %> +<% content_for :sidebar do %> + <% if User.current.allowed_to?(:add_message_watchers, @project) || + (@topic.watchers.present? && User.current.allowed_to?(:view_message_watchers, @project)) %> + <div id="watchers"> + <%= render :partial => 'watchers/watchers', :locals => {:watched => @topic} %> + </div> + <% end %> +<% end %> |