summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-08-19 04:33:57 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-08-19 04:33:57 +0000
commit1c93f99a55299c2b0f6c61bd5a3c593328e33eb3 (patch)
tree3c7d74aa580229848c9d173f4bef179d20cf4718
parent758feaccab22f2e76b2c66279634f442d177d9f8 (diff)
downloadredmine-1c93f99a55299c2b0f6c61bd5a3c593328e33eb3.tar.gz
redmine-1c93f99a55299c2b0f6c61bd5a3c593328e33eb3.zip
Merged r3943 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@3993 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/gantts_controller.rb1
-rw-r--r--lib/redmine.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/gantts_controller.rb b/app/controllers/gantts_controller.rb
index e762c19c8..cdfef5238 100644
--- a/app/controllers/gantts_controller.rb
+++ b/app/controllers/gantts_controller.rb
@@ -1,4 +1,5 @@
class GanttsController < ApplicationController
+ menu_item :gantt
before_filter :find_optional_project
rescue_from Query::StatementInvalid, :with => :query_statement_invalid
diff --git a/lib/redmine.rb b/lib/redmine.rb
index e92f67b73..d390cda26 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -183,6 +183,7 @@ Redmine::MenuManager.map :project_menu do |menu|
menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural
menu.push :new_issue, { :controller => 'issues', :action => 'new' }, :param => :project_id, :caption => :label_issue_new,
:html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) }
+ menu.push :gantt, { :controller => 'gantts', :action => 'show' }, :param => :project_id, :caption => :label_gantt
menu.push :news, { :controller => 'news', :action => 'index' }, :param => :project_id, :caption => :label_news_plural
menu.push :documents, { :controller => 'documents', :action => 'index' }, :param => :project_id, :caption => :label_document_plural
menu.push :wiki, { :controller => 'wiki', :action => 'index', :page => nil },