summaryrefslogtreecommitdiffstats
path: root/lib/redmine.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-08-04 00:38:22 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-08-04 00:38:22 +0000
commit6f3ae29522f49c6ac536a9118657d79bb2cef600 (patch)
tree25dd64635b150c91b261b39d38336556329b56e3 /lib/redmine.rb
parent6e14b8a6af27b9e801f3a31e144a274af9f530fe (diff)
downloadredmine-6f3ae29522f49c6ac536a9118657d79bb2cef600.tar.gz
redmine-6f3ae29522f49c6ac536a9118657d79bb2cef600.zip
Use the MenuManager for the Administration menu. #6008
Contributed by Jean-Baptiste Barth. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3909 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r--lib/redmine.rb17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 238ee110a..b95166e76 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -157,7 +157,22 @@ Redmine::MenuManager.map :application_menu do |menu|
end
Redmine::MenuManager.map :admin_menu do |menu|
- # Empty
+ menu.push :projects, {:controller => 'admin', :action => 'projects'}, :caption => :label_project_plural
+ menu.push :users, {:controller => 'users'}, :caption => :label_user_plural
+ menu.push :groups, {:controller => 'groups'}, :caption => :label_group_plural
+ menu.push :roles, {:controller => 'roles'}, :caption => :label_role_and_permissions
+ menu.push :trackers, {:controller => 'trackers'}, :caption => :label_tracker_plural
+ menu.push :issue_statuses, {:controller => 'issue_statuses'}, :caption => :label_issue_status_plural,
+ :html => {:class => 'issue_statuses'}
+ menu.push :workflows, {:controller => 'workflows', :action => 'edit'}, :caption => :label_workflow
+ menu.push :custom_fields, {:controller => 'custom_fields'}, :caption => :label_custom_field_plural,
+ :html => {:class => 'custom_fields'}
+ menu.push :enumerations, {:controller => 'enumerations'}
+ menu.push :settings, {:controller => 'settings'}
+ menu.push :ldap_authentication, {:controller => 'ldap_auth_sources', :action => 'index'},
+ :html => {:class => 'server_authentication'}
+ menu.push :plugins, {:controller => 'admin', :action => 'plugins'}, :last => true
+ menu.push :info, {:controller => 'admin', :action => 'info'}, :caption => :label_information_plural, :last => true
end
Redmine::MenuManager.map :project_menu do |menu|