Project

General

Profile

Patch #24313 » 01_user_regular_icons_for_admin_links.patch

Marius BĂLTEANU, 2016-11-09 22:27

View differences:

lib/redmine.rb
207 207
end
208 208

  
209 209
Redmine::MenuManager.map :admin_menu do |menu|
210
  menu.push :projects, {:controller => 'admin', :action => 'projects'}, :caption => :label_project_plural
211
  menu.push :users, {:controller => 'users'}, :caption => :label_user_plural
212
  menu.push :groups, {:controller => 'groups'}, :caption => :label_group_plural
213
  menu.push :roles, {:controller => 'roles'}, :caption => :label_role_and_permissions
214
  menu.push :trackers, {:controller => 'trackers'}, :caption => :label_tracker_plural
210
  menu.push :projects, {:controller => 'admin', :action => 'projects'}, :caption => :label_project_plural,
211
            :html => {:class => 'icon icon-projects'}
212
  menu.push :users, {:controller => 'users'}, :caption => :label_user_plural,
213
            :html => {:class => 'icon icon-user'}
214
  menu.push :groups, {:controller => 'groups'}, :caption => :label_group_plural,
215
            :html => {:class => 'icon icon-group'}
216
  menu.push :roles, {:controller => 'roles'}, :caption => :label_role_and_permissions,
217
            :html => {:class => 'icon icon-roles'}
218
  menu.push :trackers, {:controller => 'trackers'}, :caption => :label_tracker_plural,
219
            :html => {:class => 'icon icon-issue'}
215 220
  menu.push :issue_statuses, {:controller => 'issue_statuses'}, :caption => :label_issue_status_plural,
216
            :html => {:class => 'issue_statuses'}
217
  menu.push :workflows, {:controller => 'workflows', :action => 'edit'}, :caption => :label_workflow
221
            :html => {:class => 'icon icon-issue-edit'}
222
  menu.push :workflows, {:controller => 'workflows', :action => 'edit'}, :caption => :label_workflow,
223
            :html => {:class => 'icon icon-workflows'}
218 224
  menu.push :custom_fields, {:controller => 'custom_fields'},  :caption => :label_custom_field_plural,
219
            :html => {:class => 'custom_fields'}
220
  menu.push :enumerations, {:controller => 'enumerations'}
221
  menu.push :settings, {:controller => 'settings'}
225
            :html => {:class => 'icon icon-custom-fields'}
226
  menu.push :enumerations, {:controller => 'enumerations'},
227
            :html => {:class => 'icon icon-list'}
228
  menu.push :settings, {:controller => 'settings'},
229
            :html => {:class => 'icon icon-settings'}
222 230
  menu.push :ldap_authentication, {:controller => 'auth_sources', :action => 'index'},
223
            :html => {:class => 'server_authentication'}
224
  menu.push :plugins, {:controller => 'admin', :action => 'plugins'}, :last => true
225
  menu.push :info, {:controller => 'admin', :action => 'info'}, :caption => :label_information_plural, :last => true
231
            :html => {:class => 'icon icon-server-authentication'}
232
  menu.push :plugins, {:controller => 'admin', :action => 'plugins'}, :last => true,
233
            :html => {:class => 'icon icon-plugins'}
234
  menu.push :info, {:controller => 'admin', :action => 'info'}, :caption => :label_information_plural, :last => true,
235
            :html => {:class => 'icon icon-help'}
226 236
end
227 237

  
228 238
Redmine::MenuManager.map :project_menu do |menu|
public/stylesheets/application.css
78 78
#admin-menu ul {margin: 0;  padding: 0;}
79 79
#admin-menu li {margin: 0;  padding: 0 0 6px 0; list-style-type:none;}
80 80

  
81
#admin-menu a { background-position: 0% 40%; background-repeat: no-repeat; padding-left: 20px; padding-top: 2px; padding-bottom: 3px;}
82
#admin-menu a.projects { background-image: url(../images/projects.png); }
83
#admin-menu a.users { background-image: url(../images/user.png); }
84
#admin-menu a.groups { background-image: url(../images/group.png); }
85
#admin-menu a.roles { background-image: url(../images/database_key.png); }
86
#admin-menu a.trackers { background-image: url(../images/ticket.png); }
87
#admin-menu a.issue_statuses { background-image: url(../images/ticket_edit.png); }
88
#admin-menu a.workflows { background-image: url(../images/ticket_go.png); }
89
#admin-menu a.custom_fields { background-image: url(../images/textfield.png); }
90
#admin-menu a.enumerations { background-image: url(../images/text_list_bullets.png); }
91
#admin-menu a.settings { background-image: url(../images/changeset.png); }
92
#admin-menu a.plugins { background-image: url(../images/plugin.png); }
93
#admin-menu a.info { background-image: url(../images/help.png); }
94
#admin-menu a.server_authentication { background-image: url(../images/server_key.png); }
95

  
96 81
#main {background-color:#EEEEEE;}
97 82

  
98 83
#sidebar{ float: right; width: 22%; position: relative; z-index: 9; padding: 0; margin: 0;}
......
1219 1204
.icon-close { background-image: url(../images/close.png); }
1220 1205
.icon-close:hover { background-image: url(../images/close_hl.png); }
1221 1206
.icon-settings { background-image: url(../images/changeset.png); }
1207
.icon-group { background-image: url(../images/group.png); }
1208
.icon-roles { background-image: url(../images/database_key.png); }
1209
.icon-issue-edit { background-image: url(../images/ticket_edit.png); }
1210
.icon-workflows { background-image: url(../images/ticket_go.png); }
1211
.icon-custom-fields { background-image: url(../images/textfield.png); }
1212
.icon-plugins { background-image: url(../images/plugin.png); }
1222 1213

  
1223 1214
.icon-file { background-image: url(../images/files/default.png); }
1224 1215
.icon-file.text-plain { background-image: url(../images/files/text.png); }
(1-1/9)