Patch #6008 ยป move-admin-menu.diff
app/views/admin/_menu.rhtml | ||
---|---|---|
1 | 1 |
<div id="admin-menu"> |
2 | 2 |
<ul> |
3 |
<li><%= link_to l(:label_project_plural), {:controller => 'admin', :action => 'projects'}, :class => 'projects' %></li> |
|
4 |
<li><%= link_to l(:label_user_plural), {:controller => 'users'}, :class => 'users' %></li> |
|
5 |
<li><%= link_to l(:label_group_plural), {:controller => 'groups'}, :class => 'groups' %></li> |
|
6 |
<li><%= link_to l(:label_role_and_permissions), {:controller => 'roles'}, :class => 'roles' %></li> |
|
7 |
<li><%= link_to l(:label_tracker_plural), {:controller => 'trackers'}, :class => 'trackers' %></li> |
|
8 |
<li><%= link_to l(:label_issue_status_plural), {:controller => 'issue_statuses'}, :class => 'issue_statuses' %></li> |
|
9 |
<li><%= link_to l(:label_workflow), {:controller => 'workflows', :action => 'edit'}, :class => 'workflows' %></li> |
|
10 |
<li><%= link_to l(:label_custom_field_plural), {:controller => 'custom_fields'}, :class => 'custom_fields' %></li> |
|
11 |
<li><%= link_to l(:label_enumerations), {:controller => 'enumerations'}, :class => 'enumerations' %></li> |
|
12 |
<li><%= link_to l(:label_settings), {:controller => 'settings'}, :class => 'settings' %></li> |
|
13 |
<li><%= link_to l(:label_ldap_authentication), {:controller => 'ldap_auth_sources', :action => 'index'}, :class => 'server_authentication' %></li> |
|
14 |
<% menu_items_for(:admin_menu) do |item| -%> |
|
15 |
<li><%= link_to h(item.caption), item.url, item.html_options %></li> |
|
16 |
<% end -%> |
|
17 |
<li><%= link_to l(:label_plugins), {:controller => 'admin', :action => 'plugins'}, :class => 'plugins' %></li> |
|
18 |
<li><%= link_to l(:label_information_plural), {:controller => 'admin', :action => 'info'}, :class => 'info' %></li> |
|
3 |
<%= render_menu :admin_menu %> |
|
19 | 4 |
</ul> |
20 | 5 |
</div> |
lib/redmine.rb | ||
---|---|---|
157 | 157 |
end |
158 | 158 | |
159 | 159 |
Redmine::MenuManager.map :admin_menu do |menu| |
160 |
# Empty |
|
160 |
menu.push :projects, {:controller => 'admin', :action => 'projects'}, :caption => :label_project_plural |
|
161 |
menu.push :users, {:controller => 'users'}, :caption => :label_user_plural |
|
162 |
menu.push :groups, {:controller => 'groups'}, :caption => :label_group_plural |
|
163 |
menu.push :roles, {:controller => 'roles'}, :caption => :label_role_and_permissions |
|
164 |
menu.push :trackers, {:controller => 'trackers'}, :caption => :label_tracker_plural |
|
165 |
menu.push :issue_statuses, {:controller => 'issue_statuses'}, :caption => :label_issue_status_plural, |
|
166 |
:html => {:class => 'issue_statuses'} |
|
167 |
menu.push :workflows, {:controller => 'workflows', :action => 'edit'}, :caption => :label_workflow |
|
168 |
menu.push :custom_fields, {:controller => 'custom_fields'}, :caption => :label_custom_field_plural, |
|
169 |
:html => {:class => 'custom_fields'} |
|
170 |
menu.push :enumerations, {:controller => 'enumerations'} |
|
171 |
menu.push :settings, {:controller => 'settings'} |
|
172 |
menu.push :ldap_authentication, {:controller => 'ldap_auth_sources', :action => 'index'}, |
|
173 |
:html => {:class => 'server_authentication'} |
|
174 |
menu.push :plugins, {:controller => 'admin', :action => 'plugins'}, :last => true |
|
175 |
menu.push :info, {:controller => 'admin', :action => 'info'}, :caption => :label_information_plural, :last => true |
|
161 | 176 |
end |
162 | 177 | |
163 | 178 |
Redmine::MenuManager.map :project_menu do |menu| |