summaryrefslogtreecommitdiffstats
path: root/app/views/issues
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-05-29 00:51:57 +0000
committerGo MAEDA <maeda@farend.jp>2018-05-29 00:51:57 +0000
commit5ab17d27ac35796e521015f5d2075f4eafba5290 (patch)
treeea6c61033bbecbdea4c4f0aca27a73a3a1e8e618 /app/views/issues
parenteafe8a9f9e93d5d84b02a9f90acf9bf58b9f288a (diff)
downloadredmine-5ab17d27ac35796e521015f5d2075f4eafba5290.tar.gz
redmine-5ab17d27ac35796e521015f5d2075f4eafba5290.zip
Add right-click context menu to the contextual area of an issue (#28829).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17354 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues')
-rw-r--r--app/views/issues/_action_menu.html.erb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/issues/_action_menu.html.erb b/app/views/issues/_action_menu.html.erb
index b535faec9..639858394 100644
--- a/app/views/issues/_action_menu.html.erb
+++ b/app/views/issues/_action_menu.html.erb
@@ -4,4 +4,10 @@
<%= watcher_link(@issue, User.current) %>
<%= link_to l(:button_copy), project_copy_issue_path(@project, @issue), :class => 'icon icon-copy' if User.current.allowed_to?(:copy_issues, @project) && Issue.allowed_target_projects.any? %>
<%= link_to l(:button_delete), issue_path(@issue), :data => {:confirm => issues_destroy_confirmation_message(@issue)}, :method => :delete, :class => 'icon icon-del' if @issue.deletable? %>
-</div>
+<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %>
+ <span class="hascontextmenu">
+ <%= check_box_tag("ids[]", @issue.id, false, :style => 'display:none;', :id => nil) %>
+ <%= link_to_context_menu %>
+ </span>
+<% end %>
+</div> \ No newline at end of file