Module: BreadcrumbsHelper

Defined in:
app/helpers/breadcrumbs_helper.rb

Instance Method Summary collapse

Instance Method Details



11
12
13
14
15
16
17
# File 'app/helpers/breadcrumbs_helper.rb', line 11

def breadcrumb_home_link
  if Organization.current.breadcrumb_image_url.present?
    link_to image_tag(Organization.current.breadcrumb_image_url, 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


19
20
21
22
23
# File 'app/helpers/breadcrumbs_helper.rb', line 19

def breadcrumb_item_class(last)
  <<HTML
  class='mu-breadcrumb-list-item #{last}'
HTML
end


3
4
5
# File 'app/helpers/breadcrumbs_helper.rb', line 3

def breadcrumbs(e, extra=nil)
  breadcrumbs0(e, extra, 'last')
end

#home_breadcrumbObject



7
8
9
# File 'app/helpers/breadcrumbs_helper.rb', line 7

def home_breadcrumb
  "<li class='mu-breadcrumb-list-item brand '>#{breadcrumb_home_link}</li>".html_safe
end