Sha256: a1159dfb08d173f327f5220206b4af4495e670eaa6ee27f2608ef2a6154a0dcd
Contents?: true
Size: 528 Bytes
Versions: 29
Compression:
Stored size: 528 Bytes
Contents
module ConteRailsTemplate class BreadcrumbsRenderer < SimpleNavigation::Renderer::Base def render(item_container) a_tags(item_container).join.html_safe end protected def a_tags(item_container) item_container.items.inject([]) do |list, item| if item.selected? list << content_tag(:li, tag_for(item)) if item.selected? if include_sub_navigation?(item) list.concat a_tags(item.sub_navigation) end end list end end end end
Version data entries
29 entries across 29 versions & 1 rubygems