Commit 354b1cc0079cfe62b5fc97b46d8d99e7c433b3ab
1 parent
7afdf49b
Exists in
master
and in
29 other branches
ActionItem1046: use CSS for the icons
Showing
2 changed files
with
8 additions
and
2 deletions
Show diff stats
app/helpers/profile_editor_helper.rb
@@ -142,8 +142,7 @@ module ProfileEditorHelper | @@ -142,8 +142,7 @@ module ProfileEditorHelper | ||
142 | end | 142 | end |
143 | 143 | ||
144 | def control_panel_button(title, icon, url) | 144 | def control_panel_button(title, icon, url) |
145 | - link_to title, url, :style => 'background-image: url(%s)' % image_path('control-panel/' + 'system-users.png') # TODO use icon argument | 145 | + link_to title, url, :class => 'control-panel-%s' % icon |
146 | end | 146 | end |
147 | 147 | ||
148 | - | ||
149 | end | 148 | end |
public/stylesheets/controller_profile_editor.css
@@ -15,6 +15,13 @@ | @@ -15,6 +15,13 @@ | ||
15 | text-decoration: none; | 15 | text-decoration: none; |
16 | font-weight: bold; | 16 | font-weight: bold; |
17 | color: black; | 17 | color: black; |
18 | + | ||
19 | + /* default icon */ | ||
20 | + background-image: url(../images/control-panel/system-users.png); | ||
21 | +} | ||
22 | + | ||
23 | +.msie6 .control-panel a { | ||
24 | + background-image: url(../images/control-panel/system-users.gif); | ||
18 | } | 25 | } |
19 | 26 | ||
20 | .control-panel a:hover { | 27 | .control-panel a:hover { |