diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-08-04 00:38:22 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-08-04 00:38:22 +0000 |
commit | 6f3ae29522f49c6ac536a9118657d79bb2cef600 (patch) | |
tree | 25dd64635b150c91b261b39d38336556329b56e3 /app/views/admin | |
parent | 6e14b8a6af27b9e801f3a31e144a274af9f530fe (diff) | |
download | redmine-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 'app/views/admin')
-rw-r--r-- | app/views/admin/_menu.rhtml | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/app/views/admin/_menu.rhtml b/app/views/admin/_menu.rhtml index a8de88850..bd3abebe1 100644 --- a/app/views/admin/_menu.rhtml +++ b/app/views/admin/_menu.rhtml @@ -1,20 +1,5 @@ <div id="admin-menu"> - <ul> - <li><%= link_to l(:label_project_plural), {:controller => 'admin', :action => 'projects'}, :class => 'projects' %></li> - <li><%= link_to l(:label_user_plural), {:controller => 'users'}, :class => 'users' %></li> - <li><%= link_to l(:label_group_plural), {:controller => 'groups'}, :class => 'groups' %></li> - <li><%= link_to l(:label_role_and_permissions), {:controller => 'roles'}, :class => 'roles' %></li> - <li><%= link_to l(:label_tracker_plural), {:controller => 'trackers'}, :class => 'trackers' %></li> - <li><%= link_to l(:label_issue_status_plural), {:controller => 'issue_statuses'}, :class => 'issue_statuses' %></li> - <li><%= link_to l(:label_workflow), {:controller => 'workflows', :action => 'edit'}, :class => 'workflows' %></li> - <li><%= link_to l(:label_custom_field_plural), {:controller => 'custom_fields'}, :class => 'custom_fields' %></li> - <li><%= link_to l(:label_enumerations), {:controller => 'enumerations'}, :class => 'enumerations' %></li> - <li><%= link_to l(:label_settings), {:controller => 'settings'}, :class => 'settings' %></li> - <li><%= link_to l(:label_ldap_authentication), {:controller => 'ldap_auth_sources', :action => 'index'}, :class => 'server_authentication' %></li> - <% menu_items_for(:admin_menu) do |item| -%> - <li><%= link_to h(item.caption), item.url, item.html_options %></li> - <% end -%> - <li><%= link_to l(:label_plugins), {:controller => 'admin', :action => 'plugins'}, :class => 'plugins' %></li> - <li><%= link_to l(:label_information_plural), {:controller => 'admin', :action => 'info'}, :class => 'info' %></li> - </ul> + <ul> + <%= render_menu :admin_menu %> + </ul> </div> |