Commit e6404f2d4bba72689146f62ef858650a014419c3
Committed by
Paulo Meireles
1 parent
820be114
Exists in
master
and in
28 other branches
[Mezuro] Added Mezuro panel control buttons
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin.rb
... | ... | @@ -18,6 +18,12 @@ class MezuroPlugin < Noosfero::Plugin |
18 | 18 | [MezuroPlugin::ConfigurationContent, MezuroPlugin::ProjectContent] |
19 | 19 | end |
20 | 20 | |
21 | + def control_panel_buttons | |
22 | + [{:title => _('Mezuro Project'), :url => {:controller => 'cms', :action => 'new', :profile => context.profile.identifier, :type => 'MezuroPlugin::ProjectContent'} }, | |
23 | + {:title => _('Mezuro Configuration'), :url => {:controller => 'cms', :action => 'new', :profile => context.profile.identifier, :type => 'MezuroPlugin::ConfigurationContent'} }] | |
24 | + end | |
25 | + | |
26 | + | |
21 | 27 | def stylesheet? |
22 | 28 | true |
23 | 29 | end | ... | ... |