summaryrefslogtreecommitdiffstats
path: root/app/views/messages/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/messages/show.html.erb')
-rw-r--r--app/views/messages/show.html.erb8
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 %>