Sha256: bceee2fb219e3eedbd5631464c51aaa14037e196d00575e3701cc616e7fca283
Contents?: true
Size: 571 Bytes
Versions: 12
Compression:
Stored size: 571 Bytes
Contents
module CamaleonCms module Admin module BreadcrumbHelper # draw the title for the admin admin panel according the breadcrumb def cama_admin_title_draw res = [t('camaleon_cms.admin.sidebar_top.admin_panel')] breadcrumbs.reverse.slice(0, 2).reverse.each { |b| res << (b.is_a?(Hash) ? b[:name] : b.name) } res.join(' » ') end # add breadcrumb item at the end # label => label of the link # url: url for the link # DEPRECATED def admin_breadcrumb_add(label, url = ''); end end end end
Version data entries
12 entries across 12 versions & 1 rubygems