ref: master
plugins/peek_profiling/lib/peek_profiling_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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
Peek.into Peek::Views::Git Peek.into Peek::Views::PerformanceBar Peek.into Peek::Views::Rblineprof Peek.into Peek::Views::GC Peek.into Peek::Views::PG Peek.into Peek::Views::Dalli Peek.into Peek::Views::ActiveResource class PeekProfilingPlugin < Noosfero::Plugin def self.plugin_name I18n.t('peek_profiling_plugin.lib.plugin.name') end def self.plugin_description I18n.t('peek_profiling_plugin.lib.plugin.description') end def stylesheet? true end def js_files [].map{ |j| "javascripts/#{j}" } end def body_beginning lambda do render 'peek/bar' end end def head_ending lambda do javascript_include_tag 'peek', 'peek/views/rblineprof' stylesheet_link_tag 'peek', 'peek/views/rblineprof', 'peek/views/rblineprof/pygments' end end end |