summaryrefslogtreecommitdiffstats
path: root/app/views/context_menus/issues.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/context_menus/issues.html.erb')
-rw-r--r--app/views/context_menus/issues.html.erb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/context_menus/issues.html.erb b/app/views/context_menus/issues.html.erb
index 48be73b02..df3d73e9b 100644
--- a/app/views/context_menus/issues.html.erb
+++ b/app/views/context_menus/issues.html.erb
@@ -117,6 +117,18 @@
</li>
<% end %>
+<% if @can[:add_watchers] %>
+ <li class="folder">
+ <a href="#" class="submenu"><%= l(:label_issue_watchers) %></a>
+ <ul>
+ <li><%= context_menu_link l(:button_add),
+ new_watchers_path(:object_type => 'issue', :object_id => @issue_ids),
+ :remote => true,
+ :class => 'icon-add' %></li>
+ </ul>
+ </li>
+<% end %>
+
<% if User.current.logged? %>
<li><%= watcher_link(@issues, User.current) %></li>
<% end %>