]> source.dussan.org Git - redmine.git/commitdiff
Adds watch/unwatch link on the issue context menu (#2730).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 12 Feb 2009 22:14:22 +0000 (22:14 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 12 Feb 2009 22:14:22 +0000 (22:14 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2460 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/context_menu.rhtml

index 6856568166dae6d3b81b57cfd3aee2bbe90a143f..0d50e5f76b8bd80fcd935b42e5b7b25e35089a47 100644 (file)
@@ -81,6 +81,9 @@
        <li><%= context_menu_link l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue},
                :class => 'icon-time-add' %></li>
        <% end %>
+       <% if User.current.logged? %>
+       <li><%= watcher_link(@issue, User.current) %></li>
+       <% end %>
 <% end %>
 
   <li><%= context_menu_link l(:button_move), {:controller => 'issues', :action => 'move', :ids => @issues.collect(&:id)},