Module: CamaleonCms::Admin::BreadcrumbHelper
- Included in:
- MenusHelper
- Defined in:
- app/helpers/camaleon_cms/admin/breadcrumb_helper.rb
Instance Method Summary collapse
-
#admin_breadcrumb_add(label, url = '') ⇒ Object
add breadcrumb item at the end label => label of the link url: url for the link DEPRECATED.
-
#cama_admin_title_draw ⇒ Object
draw the title for the admin admin panel according the breadcrumb.
Instance Method Details
#admin_breadcrumb_add(label, url = '') ⇒ Object
add breadcrumb item at the end label => label of the link url: url for the link DEPRECATED
15 |
# File 'app/helpers/camaleon_cms/admin/breadcrumb_helper.rb', line 15 def (label, url = ''); end |
#cama_admin_title_draw ⇒ Object
draw the title for the admin admin panel according the breadcrumb
5 6 7 8 9 |
# File 'app/helpers/camaleon_cms/admin/breadcrumb_helper.rb', line 5 def cama_admin_title_draw res = [t('camaleon_cms.admin.sidebar_top.admin_panel')] .reverse.slice(0, 2).reverse.each { |b| res << (b.is_a?(Hash) ? b[:name] : b.name) } res.join(' » ') end |