summaryrefslogtreecommitdiffstats
path: root/lib/redmine.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-19 11:53:43 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-19 11:53:43 +0000
commit0faa4568a0ab18277259ad1c89309c3c53fa42de (patch)
tree0bcdcc9bfb1263980715b650cffd3a7236d5feeb /lib/redmine.rb
parent3e031b4243b38c3739936ae143acf21d305cd570 (diff)
downloadredmine-0faa4568a0ab18277259ad1c89309c3c53fa42de.tar.gz
redmine-0faa4568a0ab18277259ad1c89309c3c53fa42de.zip
Highlight the current item of the main menu.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1076 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r--lib/redmine.rb25
1 files changed, 14 insertions, 11 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 2dca9ed50..d0e152467 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -91,15 +91,18 @@ end
# Project menu configuration
Redmine::MenuManager.map :project_menu do |menu|
- menu.push :label_overview, :controller => 'projects', :action => 'show'
- menu.push :label_activity, :controller => 'projects', :action => 'activity'
- menu.push :label_roadmap, :controller => 'projects', :action => 'roadmap'
- menu.push :label_issue_plural, { :controller => 'issues', :action => 'index' }, :param => :project_id
- menu.push :label_news_plural, { :controller => 'news', :action => 'index' }, :param => :project_id
- menu.push :label_document_plural, { :controller => 'documents', :action => 'index' }, :param => :project_id
- menu.push :label_wiki, { :controller => 'wiki', :action => 'index', :page => nil }, :if => Proc.new { |p| p.wiki && !p.wiki.new_record? }
- menu.push :label_board_plural, { :controller => 'boards', :action => 'index', :id => nil }, :param => :project_id, :if => Proc.new { |p| p.boards.any? }
- menu.push :label_attachment_plural, :controller => 'projects', :action => 'list_files'
- menu.push :label_repository, { :controller => 'repositories', :action => 'show' }, :if => Proc.new { |p| p.repository && !p.repository.new_record? }
- menu.push :label_settings, :controller => 'projects', :action => 'settings'
+ menu.push :overview, { :controller => 'projects', :action => 'show' }, :caption => :label_overview
+ menu.push :activity, { :controller => 'projects', :action => 'activity' }, :caption => :label_activity
+ menu.push :roadmap, { :controller => 'projects', :action => 'roadmap' }, :caption => :label_roadmap
+ menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural
+ 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 },
+ :if => Proc.new { |p| p.wiki && !p.wiki.new_record? }, :caption => :label_wiki
+ menu.push :boards, { :controller => 'boards', :action => 'index', :id => nil }, :param => :project_id,
+ :if => Proc.new { |p| p.boards.any? }, :caption => :label_board_plural
+ menu.push :files, { :controller => 'projects', :action => 'list_files' }, :caption => :label_attachment_plural
+ menu.push :repository, { :controller => 'repositories', :action => 'show' },
+ :if => Proc.new { |p| p.repository && !p.repository.new_record? }, :caption => :label_repository
+ menu.push :settings, { :controller => 'projects', :action => 'settings' }, :caption => :label_settings
end