2017-06-30 12:52:11 -04:00
|
|
|
- hide_top_links = @hide_top_links || false
|
|
|
|
|
2017-08-17 05:42:04 -04:00
|
|
|
%nav.breadcrumbs{ role: "navigation", class: [container_class, @content_class] }
|
|
|
|
.breadcrumbs-container
|
2017-07-18 12:40:42 -04:00
|
|
|
- if defined?(@new_sidebar)
|
2017-07-19 21:26:18 -04:00
|
|
|
= button_tag class: 'toggle-mobile-nav', type: 'button' do
|
|
|
|
%span.sr-only Open sidebar
|
2017-07-18 12:40:42 -04:00
|
|
|
= icon ('bars')
|
2017-08-16 05:35:59 -04:00
|
|
|
.breadcrumbs-links.js-title-container
|
|
|
|
%ul.list-unstyled.breadcrumbs-list
|
|
|
|
- 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])
|
|
|
|
= render "layouts/nav/breadcrumbs/collapsed_dropdown", location: :after
|
2017-08-16 05:35:59 -04:00
|
|
|
%li
|
2017-08-16 08:13:34 -04:00
|
|
|
%h2.breadcrumbs-sub-title= @breadcrumb_title
|
2017-06-30 12:52:11 -04:00
|
|
|
- if content_for?(:breadcrumbs_extra)
|
|
|
|
.breadcrumbs-extra.hidden-xs= yield :breadcrumbs_extra
|
|
|
|
= yield :header_content
|