mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-24 01:11:12 +00:00
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
This commit is contained in:
parent
3da6062d7e
commit
a25a2e9112
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user