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

21 lines
913 B
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
2018-03-17 18:26:18 +05:30
%nav.breadcrumbs{ role: "navigation", class: [container, @content_class] }
.breadcrumbs-container
- 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")
2017-09-10 17:25:29 +05:30
= icon ('bars')
.breadcrumbs-links.js-title-container
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
%li
%h2.breadcrumbs-sub-title= link_to @breadcrumb_title, breadcrumb_title_link
2017-09-10 17:25:29 +05:30
= yield :header_content