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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
1.5 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)
2021-12-11 22:18:48 +05:30
= button_tag class: 'toggle-mobile-nav', data: { qa_selector: 'toggle_mobile_nav_button' }, 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])
2021-12-11 22:18:48 +05:30
= render "layouts/nav/breadcrumbs/collapsed_inline_list", location: :after
2021-02-22 17:27:13 +05:30
- unless @skip_current_level_breadcrumb
%li
2021-11-18 22:05:49 +05:30
%h2.breadcrumbs-sub-title{ data: { qa_selector: 'breadcrumb_sub_title_content' } }
2021-02-22 17:27:13 +05:30
= link_to @breadcrumb_title, breadcrumb_title_link
2021-11-18 22:05:49 +05:30
-# haml-lint:disable InlineJavaScript
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