Sha256: 7285085ca661625ef679d93112d82ea8d4ba9b5d439708e0542f1cf3ded274a5
Contents?: true
Size: 495 Bytes
Versions: 35
Compression:
Stored size: 495 Bytes
Contents
module CamaleonCms::Admin::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
Version data entries
35 entries across 35 versions & 1 rubygems