Module: BreadcrumbsHelper
- Defined in:
- app/helpers/breadcrumbs_helper.rb
Instance Method Summary collapse
- #breadcrumb_home_link ⇒ Object
- #breadcrumb_item_class(last) ⇒ Object
- #breadcrumb_list_item(last, item) ⇒ Object
- #breadcrumbs(e, extra = nil) ⇒ Object
- #home_breadcrumb ⇒ Object
Instance Method Details
#breadcrumb_home_link ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/helpers/breadcrumbs_helper.rb', line 11 def if Organization.current..present? link_to image_tag(Organization.current., class: "da mu-breadcrumb-img"), root_path else link_to "<i class='da da-mumuki' aria-label=#{t(:home)}></i>".html_safe, root_path end end |
#breadcrumb_item_class(last) ⇒ Object
19 20 21 22 23 |
# File 'app/helpers/breadcrumbs_helper.rb', line 19 def (last) <<HTML class='mu-breadcrumb-list-item #{last}' HTML end |
#breadcrumb_list_item(last, item) ⇒ Object
25 26 27 |
# File 'app/helpers/breadcrumbs_helper.rb', line 25 def (last, item) "<li #{(last)}>#{item}</li>".html_safe end |
#breadcrumbs(e, extra = nil) ⇒ Object
3 4 5 |
# File 'app/helpers/breadcrumbs_helper.rb', line 3 def (e, extra=nil) (e, extra, 'last') end |
#home_breadcrumb ⇒ Object
7 8 9 |
# File 'app/helpers/breadcrumbs_helper.rb', line 7 def "<li class='mu-breadcrumb-list-item brand '>#{}</li>".html_safe end |