Module: Refinerycms::AdminRestyle::AdminViewHelpers
- Defined in:
- lib/refinerycms/admin_restyle/admin_view_helpers.rb
Instance Method Summary collapse
Instance Method Details
#current_plugin(path) ⇒ Object
5 6 7 |
# File 'lib/refinerycms/admin_restyle/admin_view_helpers.rb', line 5 def current_plugin path path == request.path end |
#navigation_menu ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/refinerycms/admin_restyle/admin_view_helpers.rb', line 9 def plugins = ::Refinery::Plugins.active. = { dashboard: '', content: [], users: '' } plugins.each do |plugin| case plugin.name when 'refinery_dashboard' [:dashboard] = plugin when 'refinery_users' [:users] = plugin else [:content] << plugin end end end |