From 81ebfd10760189ed968679e08da70d5e46ae7ef7 Mon Sep 17 00:00:00 2001 From: Jan Schulz-Hofen Date: Wed, 5 Feb 2014 13:47:26 +0700 Subject: [PATCH 3/6] add virtual menu at the beginning of the project menu containing menu items for creating issue categories, versions, news, documents, and files --- lib/redmine.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/redmine.rb b/lib/redmine.rb index 6dfc880..bed89ef 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, -- 2.7.2