1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-25 18:01:14 +00:00
redmine/app/views/issues/_action_menu.html.erb
Go MAEDA 5ab17d27ac 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
2018-05-29 00:51:57 +00:00

13 lines
1.0 KiB
Plaintext

<div class="contextual">
<%= link_to l(:button_edit), edit_issue_path(@issue), :onclick => 'showAndScrollTo("update", "issue_notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit) if @issue.editable? %>
<%= link_to l(:button_log_time), new_issue_time_entry_path(@issue), :class => 'icon icon-time-add' if User.current.allowed_to?(:log_time, @project) %>
<%= 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? %>
<%= 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>