summaryrefslogtreecommitdiffstats
path: root/app/views/messages/show.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-09-19 15:32:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-09-19 15:32:52 +0000
commit16e09bfd774487d7b21e1b939f9b0321ad3a850a (patch)
treef1952dff78c37929699621a06a1de69adf3fda2c /app/views/messages/show.rhtml
parent9e7bce6a94626b4f96133bddc508192f2dfaff4f (diff)
downloadredmine-16e09bfd774487d7b21e1b939f9b0321ad3a850a.tar.gz
redmine-16e09bfd774487d7b21e1b939f9b0321ad3a850a.zip
Adds watch/unwatch functionality at forum topic level (#1912).
Users who create/reply a topic are automatically added as watchers but are now able to unwatch the topic. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1878 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/messages/show.rhtml')
-rw-r--r--app/views/messages/show.rhtml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/messages/show.rhtml b/app/views/messages/show.rhtml
index c24be7a21..31696d56d 100644
--- a/app/views/messages/show.rhtml
+++ b/app/views/messages/show.rhtml
@@ -2,6 +2,7 @@
link_to(h(@board.name), {:controller => 'boards', :action => 'show', :project_id => @project, :id => @board}) %>
<div class="contextual">
+ <%= watcher_tag(@topic, User.current) %>
<%= link_to_remote_if_authorized l(:button_quote), { :url => {:action => 'quote', :id => @topic} }, :class => 'icon icon-comment' %>
<%= link_to_if_authorized l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'icon icon-edit' %>
<%= link_to_if_authorized l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del' %>