summaryrefslogtreecommitdiffstats
path: root/app/views/context_menus
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-04-09 07:37:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-04-09 07:37:49 +0000
commit5adc1ddde9b4a353b2d2a499004c2025d6e8847a (patch)
tree157cb8f2a52a443b0b91beb2d43d70733e0e62cc /app/views/context_menus
parentc8c694840d3c16450371141be609fd6b6e023667 (diff)
downloadredmine-5adc1ddde9b4a353b2d2a499004c2025d6e8847a.tar.gz
redmine-5adc1ddde9b4a353b2d2a499004c2025d6e8847a.zip
Allow addition of watchers via bulk edit context menu (#5754).
git-svn-id: http://svn.redmine.org/redmine/trunk@15311 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/context_menus')
-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 %>