2018-03-17 18:26:18 +05:30
|
|
|
- container = @no_breadcrumb_container ? 'container-fluid' : container_class
|
2017-09-10 17:25:29 +05:30
|
|
|
- hide_top_links = @hide_top_links || false
|
2021-02-22 17:27:13 +05:30
|
|
|
- unless @skip_current_level_breadcrumb
|
|
|
|
- push_to_schema_breadcrumb(@breadcrumb_title, breadcrumb_title_link)
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
%nav.breadcrumbs{ role: "navigation", class: [container, @content_class] }
|
2020-10-24 23:57:45 +05:30
|
|
|
.breadcrumbs-container{ class: ("border-bottom-0" if @no_breadcrumb_border) }
|
2018-03-17 18:26:18 +05:30
|
|
|
- if defined?(@left_sidebar)
|
2017-09-10 17:25:29 +05:30
|
|
|
= button_tag class: 'toggle-mobile-nav', type: 'button' do
|
2018-11-18 11:00:15 +05:30
|
|
|
%span.sr-only= _("Open sidebar")
|
2020-10-24 23:57:45 +05:30
|
|
|
= sprite_icon('hamburger')
|
2020-04-22 19:07:51 +05:30
|
|
|
.breadcrumbs-links.js-title-container{ data: { qa_selector: 'breadcrumb_links_content' } }
|
2018-03-17 18:26:18 +05:30
|
|
|
%ul.list-unstyled.breadcrumbs-list.js-breadcrumbs-list
|
|
|
|
- unless hide_top_links
|
2017-09-10 17:25:29 +05:30
|
|
|
= header_title
|
2018-03-17 18:26:18 +05:30
|
|
|
- if @breadcrumbs_extra_links
|
|
|
|
- @breadcrumbs_extra_links.each do |extra|
|
|
|
|
= breadcrumb_list_item link_to(extra[:text], extra[:link])
|
|
|
|
= render "layouts/nav/breadcrumbs/collapsed_dropdown", location: :after
|
2021-02-22 17:27:13 +05:30
|
|
|
- unless @skip_current_level_breadcrumb
|
|
|
|
%li
|
|
|
|
%h2.breadcrumbs-sub-title
|
|
|
|
= link_to @breadcrumb_title, breadcrumb_title_link
|
2021-01-29 00:20:46 +05:30
|
|
|
%script{ type:'application/ld+json' }
|
|
|
|
:plain
|
|
|
|
#{schema_breadcrumb_json}
|
2017-09-10 17:25:29 +05:30
|
|
|
= yield :header_content
|