Commit 1b2e673f50d21de29b8e5dda6d06c945fa0c5a2b
Committed by
Paulo Meireles
1 parent
37ed6703
Exists in
master
and in
23 other branches
[Mezuro] Duplicated control panel method removed and added control panel image through CSS
Showing
2 changed files
with
5 additions
and
9 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin.rb
... | ... | @@ -22,15 +22,6 @@ class MezuroPlugin < Noosfero::Plugin |
22 | 22 | end |
23 | 23 | end |
24 | 24 | |
25 | - def control_panel_buttons | |
26 | - if context.profile.is_a?(Community) | |
27 | - {:title => _('Mezuro Project'), :url => {:controller => 'cms', :action => 'new', :profile => context.profile.identifier, :type => 'MezuroPlugin::ProjectContent'} } | |
28 | - else | |
29 | - {:title => _('Mezuro Configuration'), :url => {:controller => 'cms', :action => 'new', :profile => context.profile.identifier, :type => 'MezuroPlugin::ConfigurationContent'} } | |
30 | - end | |
31 | - end | |
32 | - | |
33 | - | |
34 | 25 | def stylesheet? |
35 | 26 | true |
36 | 27 | end | ... | ... |
plugins/mezuro/public/style.css
... | ... | @@ -30,3 +30,8 @@ a:link,active,visited .ancestor{ |
30 | 30 | font-style: underline; |
31 | 31 | display: inline; |
32 | 32 | } |
33 | + | |
34 | +.controller-profile_editor a.control-panel-mezuro, | |
35 | + .controller-profile_editor .msie6 a.control-panel-mezuro { | |
36 | + background-image: url(icons/mezuro.png) | |
37 | +} | ... | ... |