cirandas.net

ref: master

plugins/currency/lib/currency_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
26
class CurrencyPlugin < Noosfero::Plugin

  def self.plugin_name
    "Currency"
  end

  def self.plugin_description
    _("Create and accepts social currencies")
  end

  def control_panel_buttons
    #if context.profile.enterprise?
      #{ title: _("My currencies"), url: {controller: 'currency_plugin_myprofile', action: 'edit'} }
    #end
  end

  def stylesheet?
    true
  end

  def js_files
    ['currency.js'].map{ |j| "javascripts/#{j}" }
  end

end