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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-08-16 11:14:06 +0300
committerPhil Hughes <me@iamphill.com>2017-08-18 13:06:13 +0300
commit52252e70e8222e573901632a03d408f3f8698f63 (patch)
treec835228a66d45f7d0e52189b717ee79e82790d52 /app/views/layouts/nav/_breadcrumbs.html.haml
parent63812b2fb2dc53f94ab452761553e8cc5f046f2c (diff)
Improvements to breadcrumbs
Closes #35269
Diffstat (limited to 'app/views/layouts/nav/_breadcrumbs.html.haml')
-rw-r--r--app/views/layouts/nav/_breadcrumbs.html.haml15
1 files changed, 5 insertions, 10 deletions
diff --git a/app/views/layouts/nav/_breadcrumbs.html.haml b/app/views/layouts/nav/_breadcrumbs.html.haml
index 4db84771f4e..9c13395e3d6 100644
--- a/app/views/layouts/nav/_breadcrumbs.html.haml
+++ b/app/views/layouts/nav/_breadcrumbs.html.haml
@@ -7,21 +7,16 @@
= button_tag class: 'toggle-mobile-nav', type: 'button' do
%span.sr-only Open sidebar
= icon ('bars')
- .breadcrumbs-links.js-title-container
- - unless hide_top_links
- .title
- = link_to "GitLab", root_path
- \/
+ .breadcrumbs-links.js-title-container
+ %ul.list-unstyled.breadcrumbs-list
- if content_for?(:header_title_before)
- = yield :header_title_before
- \/
+ %li= yield :header_title_before
= header_title
- %h2.breadcrumbs-sub-title
- %ul.list-unstyled
- if @breadcrumbs_extra_links
- @breadcrumbs_extra_links.each do |extra|
%li= link_to extra[:text], extra[:link]
- %li= link_to @breadcrumb_title, breadcrumb_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