diff options
author | Go MAEDA <maeda@farend.jp> | 2021-03-25 04:21:14 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-03-25 04:21:14 +0000 |
commit | 8e3a857802c5f529ba4a4f62065d13cdc0be7a9f (patch) | |
tree | e193935d6dca9d440e347ac62121c58a2fd8c61a | |
parent | 4ac49e0d0685de06c78706c4f5bfe70d480400ea (diff) | |
download | redmine-8e3a857802c5f529ba4a4f62065d13cdc0be7a9f.tar.gz redmine-8e3a857802c5f529ba4a4f62065d13cdc0be7a9f.zip |
Restore Copy button to its original location (#34714).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@20842 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/issues/_action_menu.html.erb | 4 | ||||
-rw-r--r-- | test/functional/issues_controller_test.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/issues/_action_menu.html.erb b/app/views/issues/_action_menu.html.erb index a1dcd6312..1c0dd0545 100644 --- a/app/views/issues/_action_menu.html.erb +++ b/app/views/issues/_action_menu.html.erb @@ -5,10 +5,10 @@ <%= 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? %> <%= actions_dropdown do %> <%= copy_object_url_link(issue_url(@issue, only_path: false)) %> - <%= 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? %> diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 31b67c753..610162103 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -2076,8 +2076,8 @@ class IssuesControllerTest < Redmine::ControllerTest assert_select 'a', {:count => 1, :text => 'Edit'} assert_select 'a', {:count => 0, :text => 'Log time'} assert_select 'a', {:count => 0, :text => 'Watch'} + assert_select 'a', {:count => 0, :text => 'Copy'} assert_select 'div.drdn-items a', {:count => 1, :text => 'Copy link'} - assert_select 'div.drdn-items a', {:count => 0, :text => 'Copy'} assert_select 'div.drdn-items a', {:count => 0, :text => 'Delete'} end # anonymous role is allowed to add a note @@ -2098,8 +2098,8 @@ class IssuesControllerTest < Redmine::ControllerTest assert_select 'a', {:count => 1, :text => 'Edit'} assert_select 'a', {:count => 1, :text => 'Log time'} assert_select 'a', {:count => 1, :text => 'Watch'} + assert_select 'a', {:count => 1, :text => 'Copy'} assert_select 'div.drdn-items a', {:count => 1, :text => 'Copy link'} - assert_select 'div.drdn-items a', {:count => 1, :text => 'Copy'} assert_select 'div.drdn-items a', {:count => 1, :text => 'Delete'} end assert_select 'form#issue-form' do |