debian-mirror-gitlab/app/views/layouts/nav/_breadcrumbs.html.haml

28 lines
1.3 KiB
Text
Raw Normal View History

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
2021-03-11 19:13:27 +05:30
%nav.breadcrumbs{ class: [container, @content_class], 'aria-label': _('Breadcrumbs') }
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")
2021-03-08 18:12:59 +05:30
= sprite_icon('hamburger', size: 18)
2021-04-29 21:17:54 +05:30
.breadcrumbs-links{ data: { testid: 'breadcrumb-links', 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-04-29 21:17:54 +05:30
%script{ type: 'application/ld+json' }
2021-01-29 00:20:46 +05:30
:plain
#{schema_breadcrumb_json}
2017-09-10 17:25:29 +05:30
= yield :header_content