cirandas.net

ref: master

plugins/recent_activities/lib/recent_activities_plugin.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class RecentActivitiesPlugin < Noosfero::Plugin
  def self.plugin_name
    'RecentActivitiesPlugin'
  end

  def self.plugin_description
    _('Adds a block that lists recent profile activity.')
  end

  def self.extra_blocks
    {
      RecentActivitiesPlugin::ActivitiesBlock => { type: [Community, Person] }
    }
  end

  def self.has_admin_url?
    false
  end

  def stylesheet?
    true
  end
end

ApplicationHelper.include ActionTrackerHelper