Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_breadcrumbs.html.haml « nav « layouts « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9c13395e3d6dbe1e7189155e3e801d511f8f88c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- breadcrumb_link = breadcrumb_title_link
- hide_top_links = @hide_top_links || false

%nav.breadcrumbs{ role: "navigation" }
  .breadcrumbs-container{ class: [container_class, @content_class] }
    - if defined?(@new_sidebar)
      = button_tag class: 'toggle-mobile-nav', type: 'button' do
        %span.sr-only Open sidebar
        = icon ('bars')
      .breadcrumbs-links.js-title-container
        %ul.list-unstyled.breadcrumbs-list
          - if content_for?(:header_title_before)
            %li= yield :header_title_before
          = header_title
          - if @breadcrumbs_extra_links
            - @breadcrumbs_extra_links.each do |extra|
              %li= link_to extra[:text], extra[:link]
          %li
            %h2.breadcrumbs-sub-title= link_to @breadcrumb_title, breadcrumb_link
    - if content_for?(:breadcrumbs_extra)
      .breadcrumbs-extra.hidden-xs= yield :breadcrumbs_extra
    = yield :header_content