diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-11 06:28:01 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-11 06:28:01 +0000 |
commit | a25a2e91124325d814b2aac4207bc90cc001a5f9 (patch) | |
tree | dbe7c9445f31106b3abf41c0ab6d45af8670af77 /lib | |
parent | 3da6062d7eb55f98c61e42216915e0e0f1d85af1 (diff) | |
download | redmine-a25a2e91124325d814b2aac4207bc90cc001a5f9.tar.gz redmine-a25a2e91124325d814b2aac4207bc90cc001a5f9.zip |
Move "New issue" menu item to the new object menu (#15880).
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@15505 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index d75cfd336..56b578a97 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -228,6 +228,11 @@ end Redmine::MenuManager.map :project_menu do |menu| menu.push :new_object, nil, :caption => ' + ', :html => { :id => 'new-object', :onclick => 'toggleNewObjectDropdown(); return false;' } + menu.push :new_issue_sub, { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new, + :html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) }, + :if => Proc.new { |p| Issue.allowed_target_trackers(p).any? }, + :permission => :add_issues, + :parent => :new_object menu.push :new_issue_category, {:controller => 'issue_categories', :action => 'new'}, :param => :project_id, :caption => :label_issue_category_new, :parent => :new_object menu.push :new_version, {:controller => 'versions', :action => 'new'}, :param => :project_id, :caption => :label_version_new, @@ -244,7 +249,6 @@ Redmine::MenuManager.map :project_menu do |menu| :if => Proc.new { |p| p.shared_versions.any? } menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural menu.push :new_issue, { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new, - :html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) }, :if => Proc.new { |p| Setting.new_project_issue_tab_enabled? && Issue.allowed_target_trackers(p).any? }, :permission => :add_issues menu.push :gantt, { :controller => 'gantts', :action => 'show' }, :param => :project_id, :caption => :label_gantt |