Commit 8c9ea49d440e7f36d7ce6b2239ecaff88c6c44a2
1 parent
82f8f051
Exists in
master
and in
2 other branches
adding a button in control panel to generate report
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
lib/juventude_plugin.rb
... | ... | @@ -12,4 +12,9 @@ class JuventudePlugin < Noosfero::Plugin |
12 | 12 | [JuventudePlugin::API] |
13 | 13 | end |
14 | 14 | |
15 | + def control_panel_buttons | |
16 | + {:title => _('Generate Report'), :icon => 'report', :url => {:controller => 'juventude_plugin_myprofile', :action => :send_report}, :html_options => {:class => 'admin-report'}} if context.send(:current_person).is_admin? | |
17 | + | |
18 | + end | |
19 | + | |
15 | 20 | end | ... | ... |