ref: master
plugins/social_statistics/lib/social_statistics_plugin.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
class SocialStatisticsPlugin < Noosfero::Plugin def self.plugin_name _("Social Statistics") end def self.plugin_description _("Provides customized social statistics graphs and checks.") end def reserved_identifiers ['stats'] end def user_menu_items(user) icon = '<i class="icon-menu-stats"></i><strong>' + _('Stats') + '</strong>' user.is_admin? ? proc { link_to(icon.html_safe, '/stats', :title => _("Manage the environment statistics."), :target => '_blank') } : nil end end |