diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-05-09 17:16:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-05-09 17:16:55 +0000 |
commit | 4019ba76ab3005ccc1f0495069861e4a8814be55 (patch) | |
tree | e915b28bd60fc61d1cf1ee149553cfe4de71b35c /lib/redmine.rb | |
parent | 979b5f15db88f1e7a04f1c4d0dba7e9f2379ddb0 (diff) | |
download | redmine-4019ba76ab3005ccc1f0495069861e4a8814be55.tar.gz redmine-4019ba76ab3005ccc1f0495069861e4a8814be55.zip |
Restores the "New issue" tab in the project menu and makes it optional (#6204).
git-svn-id: http://svn.redmine.org/redmine/trunk@15407 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r-- | lib/redmine.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index 540384071..1d37a523b 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -231,6 +231,10 @@ Redmine::MenuManager.map :project_menu do |menu| menu.push :roadmap, { :controller => 'versions', :action => 'index' }, :param => :project_id, :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? && p.trackers.any? }, + :permission => :add_issues menu.push :gantt, { :controller => 'gantts', :action => 'show' }, :param => :project_id, :caption => :label_gantt menu.push :calendar, { :controller => 'calendars', :action => 'show' }, :param => :project_id, :caption => :label_calendar menu.push :news, { :controller => 'news', :action => 'index' }, :param => :project_id, :caption => :label_news_plural |