diff options
author | Phil Hughes <me@iamphill.com> | 2017-06-30 16:52:11 +0000 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-06-30 16:52:11 +0000 |
commit | ec396fd93ab800e8b962f7b8bc6095f8ab754d93 (patch) | |
tree | ff37c9a4a775cca564f8a736d066a137595f1f2c /app/views/layouts/nav/_breadcrumbs.html.haml | |
parent | a6c02ce6b90026b605049784824276bb33f9e776 (diff) | |
download | gitlab-ce-ec396fd93ab800e8b962f7b8bc6095f8ab754d93.tar.gz |
New navigation breadcrumbs
Diffstat (limited to 'app/views/layouts/nav/_breadcrumbs.html.haml')
-rw-r--r-- | app/views/layouts/nav/_breadcrumbs.html.haml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/layouts/nav/_breadcrumbs.html.haml b/app/views/layouts/nav/_breadcrumbs.html.haml new file mode 100644 index 00000000000..5f1641f4300 --- /dev/null +++ b/app/views/layouts/nav/_breadcrumbs.html.haml @@ -0,0 +1,19 @@ +- breadcrumb_title = @breadcrumb_title || controller.controller_name.humanize +- hide_top_links = @hide_top_links || false + +%nav.breadcrumbs{ role: "navigation" } + .breadcrumbs-container{ class: container_class } + .breadcrumbs-links.js-title-container + - unless hide_top_links + .title + = link_to "GitLab", root_path + \/ + = header_title + %h2.breadcrumbs-sub-title + %ul.list-unstyled + - if content_for?(:sub_title_before) + = yield :sub_title_before + %li= link_to breadcrumb_title, request.path + - if content_for?(:breadcrumbs_extra) + .breadcrumbs-extra.hidden-xs= yield :breadcrumbs_extra + = yield :header_content |