2017-08-18 04:54:53 -04:00
|
|
|
- container = @no_breadcrumb_container ? 'container-fluid' : container_class
|
2017-06-30 12:52:11 -04:00
|
|
|
- hide_top_links = @hide_top_links || false
|
|
|
|
|
2017-09-04 10:47:19 -04:00
|
|
|
%nav.breadcrumbs{ role: "navigation", class: [container, @content_class] }
|
2020-08-20 05:09:55 -04:00
|
|
|
.breadcrumbs-container{ class: ("border-bottom-0" if @no_breadcrumb_border) }
|
2017-09-06 06:58:24 -04:00
|
|
|
- if defined?(@left_sidebar)
|
2017-07-19 21:26:18 -04:00
|
|
|
= button_tag class: 'toggle-mobile-nav', type: 'button' do
|
2018-06-13 02:30:40 -04:00
|
|
|
%span.sr-only= _("Open sidebar")
|
2020-08-07 17:10:07 -04:00
|
|
|
= sprite_icon('hamburger')
|
2020-03-20 17:09:17 -04:00
|
|
|
.breadcrumbs-links.js-title-container{ data: { qa_selector: 'breadcrumb_links_content' } }
|
2017-09-06 06:55:23 -04:00
|
|
|
%ul.list-unstyled.breadcrumbs-list.js-breadcrumbs-list
|
2017-08-16 05:35:59 -04:00
|
|
|
- unless hide_top_links
|
2017-06-30 12:52:11 -04:00
|
|
|
= header_title
|
2017-08-16 08:13:34 -04:00
|
|
|
- if @breadcrumbs_extra_links
|
|
|
|
- @breadcrumbs_extra_links.each do |extra|
|
|
|
|
= breadcrumb_list_item link_to(extra[:text], extra[:link])
|
2017-09-04 10:47:19 -04:00
|
|
|
= render "layouts/nav/breadcrumbs/collapsed_dropdown", location: :after
|
2017-08-16 05:35:59 -04:00
|
|
|
%li
|
2017-09-27 11:22:12 -04:00
|
|
|
%h2.breadcrumbs-sub-title= link_to @breadcrumb_title, breadcrumb_title_link
|
2017-06-30 12:52:11 -04:00
|
|
|
= yield :header_content
|