diff --git a/app/helpers/profile_editor_helper.rb b/app/helpers/profile_editor_helper.rb index 6af24e0..b6623a8 100644 --- a/app/helpers/profile_editor_helper.rb +++ b/app/helpers/profile_editor_helper.rb @@ -142,8 +142,7 @@ module ProfileEditorHelper end def control_panel_button(title, icon, url) - link_to title, url, :style => 'background-image: url(%s)' % image_path('control-panel/' + 'system-users.png') # TODO use icon argument + link_to title, url, :class => 'control-panel-%s' % icon end - end diff --git a/public/stylesheets/controller_profile_editor.css b/public/stylesheets/controller_profile_editor.css index f91dc37..6cef6af 100644 --- a/public/stylesheets/controller_profile_editor.css +++ b/public/stylesheets/controller_profile_editor.css @@ -15,6 +15,13 @@ text-decoration: none; font-weight: bold; color: black; + + /* default icon */ + background-image: url(../images/control-panel/system-users.png); +} + +.msie6 .control-panel a { + background-image: url(../images/control-panel/system-users.gif); } .control-panel a:hover { -- libgit2 0.21.2