summaryrefslogtreecommitdiff
path: root/app/views/shared/nav
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-26 06:07:41 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-26 06:07:41 +0000
commit7cd527ffd9cfef1c872faa5377eaccc3df6ef067 (patch)
tree8e4026ef008f30c5fd7b6bbff08aa494700fa706 /app/views/shared/nav
parent694926dda342630084c55ad7eba1655fa266b161 (diff)
downloadgitlab-ce-7cd527ffd9cfef1c872faa5377eaccc3df6ef067.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/shared/nav')
-rw-r--r--app/views/shared/nav/_sidebar_menu_item.html.haml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/shared/nav/_sidebar_menu_item.html.haml b/app/views/shared/nav/_sidebar_menu_item.html.haml
index 5452cd486da..eea36127745 100644
--- a/app/views/shared/nav/_sidebar_menu_item.html.haml
+++ b/app/views/shared/nav/_sidebar_menu_item.html.haml
@@ -1,8 +1,11 @@
= nav_link(**sidebar_menu_item.active_routes, html_options: sidebar_menu_item.nav_link_html_options) do
= link_to sidebar_menu_item.link, **sidebar_menu_item.link_html_options, data: { qa_selector: 'sidebar_menu_item_link', qa_menu_item: sidebar_menu_item.title } do
- %span
+ %span.gl-flex-grow-1
= sidebar_menu_item.title
- if sidebar_menu_item.sprite_icon
= sprite_icon(sidebar_menu_item.sprite_icon, **sidebar_menu_item.sprite_icon_html_options)
+ - if sidebar_menu_item.has_pill?
+ = gl_badge_tag({ size: :sm, variant: :neutral }, { class: "count fly-out-badge gl-ml-3" }) do
+ = number_with_delimiter(sidebar_menu_item.pill_count)
- if sidebar_menu_item.show_hint?
.js-feature-highlight{ **sidebar_menu_item.hint_html_options }