diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-11 06:23:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-11 06:23:33 +0000 |
commit | 5adc6a5c9f59946d6ac0588cc9052012784d7b0a (patch) | |
tree | f42e8e418c40a8786b6aa55768b9f09e59de1a48 | |
parent | cf7ff1acc93c08e09132c971671f752613978464 (diff) | |
download | redmine-5adc6a5c9f59946d6ac0588cc9052012784d7b0a.tar.gz redmine-5adc6a5c9f59946d6ac0588cc9052012784d7b0a.zip |
Add virtual menu at the beginning of the project menu (#15880).
It contains menu items for creating issue categories, versions, news,
documents, and files.
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@15503 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/redmine.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index 6dfc880ff..bed89ef68 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -226,6 +226,17 @@ Redmine::MenuManager.map :admin_menu do |menu| end Redmine::MenuManager.map :project_menu do |menu| + menu.push :new_object, nil, :caption => ' + ' + 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, + :parent => :new_object + menu.push :new_news, {:controller => 'news', :action => 'new'}, :param => :project_id, :caption => :label_news_new, + :parent => :new_object + menu.push :new_document, {:controller => 'documents', :action => 'new'}, :param => :project_id, :caption => :label_document_new, + :parent => :new_object + menu.push :new_file, {:controller => 'files', :action => 'new'}, :param => :project_id, :caption => :label_attachment_new, + :parent => :new_object menu.push :overview, { :controller => 'projects', :action => 'show' } menu.push :activity, { :controller => 'activities', :action => 'index' } menu.push :roadmap, { :controller => 'versions', :action => 'index' }, :param => :project_id, |