diff --git a/lib/juventude_plugin.rb b/lib/juventude_plugin.rb index f1a0ead..60bc0ca 100644 --- a/lib/juventude_plugin.rb +++ b/lib/juventude_plugin.rb @@ -1,20 +1,20 @@ class JuventudePlugin < Noosfero::Plugin -# def self.plugin_name -# _('Juventude custom plugin') -# end -# -# def self.plugin_description -# _("Provide a plugin to juventude environment.") -# end -# -# def self.api_mount_points -# [JuventudePlugin::API] -# end -# -# def control_panel_buttons -# {: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? -# -# end + def self.plugin_name + _('Juventude custom plugin') + end + + def self.plugin_description + _("Provide a plugin to juventude environment.") + end + + def self.api_mount_points + [JuventudePlugin::API] + end + + def control_panel_buttons + {: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? + + end end -- libgit2 0.21.2