ref: master
plugins/orders/lib/orders_plugin/base.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
class OrdersPlugin::Base < Noosfero::Plugin def stylesheet? true end def js_files ['locale', 'toggle_edit', 'sortable-table', 'help', 'orders'].map{ |j| "javascripts/#{j}" } end def control_panel_buttons [ { :title => I18n.t("orders_plugin.lib.plugin.#{'person_' if profile.person?}panel_button"), :icon => 'orders-purchases-sales', :url => {:controller => :orders_plugin_admin, :action => :index}, }, ] end end |