Noosfero/noosfero

View on GitHub
plugins/recent_content/lib/recent_content_plugin.rb

Summary

Maintainability
A
0 mins
Test Coverage
require_dependency File.dirname(__FILE__) + "/recent_content_block"

class RecentContentPlugin < Noosfero::Plugin
  def self.plugin_name
    "Recent Content Plugin"
  end

  def self.plugin_description
    _("A plugin that adds a block where you can display the content of any of your blogs.")
  end

  def self.extra_blocks
    {
      RecentContentBlock => { position: ["1", "2", "3"] }
    }
  end

  def self.has_admin_url?
    false
  end

  def stylesheet?
    true
  end
end