Commit 6c5d01816d8a54284a92b0d9fd80fcd6affb1b56

Authored by Paulo Meireles
Committed by Paulo Meireles
1 parent 3e30b0f1

[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
... ...