ref: master
plugins/elearning_secretary/lib/elearning_secretary_plugin/base.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 |
class ElearningSecretaryPlugin::Base < Noosfero::Plugin def control_panel_buttons profile = context.profile return unless profile.community? [ {title: I18n.t('elearning_secretary_plugin.views.control_panel'), icon: 'elearning-secretary-manage', url: {controller: 'elearning_secretary_plugin/manage', action: :index}}, ] end end |