Sha256: 6ed5c74012f68a8005593b2597dbcdcce56abe3a9c06e0a272e6445e046729fb
Contents?: true
Size: 399 Bytes
Versions: 5
Compression:
Stored size: 399 Bytes
Contents
# frozen_string_literal: true module Panoptic module BreadcrumbsHelper def breadcrumb_items @breadcrumb_items ||= [] end def breadcrumbs tag.nav(aria: { label: "breadcrumb" }) do tag.ol(class: "breadcrumb") do breadcrumb_items.map do |item| concat tag.li(item, class: "breadcrumb-item") end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems