gitlab-org--gitlab-foss/app/views/layouts/nav/_breadcrumbs.html.haml

21 lines
1 KiB
Text
Raw Normal View History

- container = @no_breadcrumb_container ? 'container-fluid' : container_class
2017-06-30 12:52:11 -04:00
- hide_top_links = @hide_top_links || false
%nav.breadcrumbs{ role: "navigation", class: [container, @content_class] }
.breadcrumbs-container{ class: ("border-bottom-0" if @no_breadcrumb_border) }
2017-09-06 06:58:24 -04:00
- if defined?(@left_sidebar)
= button_tag class: 'toggle-mobile-nav', type: 'button' do
%span.sr-only= _("Open sidebar")
= sprite_icon('hamburger')
.breadcrumbs-links.js-title-container{ data: { qa_selector: 'breadcrumb_links_content' } }
%ul.list-unstyled.breadcrumbs-list.js-breadcrumbs-list
- unless hide_top_links
2017-06-30 12:52:11 -04:00
= header_title
- 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
%li
%h2.breadcrumbs-sub-title= link_to @breadcrumb_title, breadcrumb_title_link
2017-06-30 12:52:11 -04:00
= yield :header_content