diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-10 12:13:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-10 12:13:03 +0300 |
commit | bfbd788e0910597b93b31020300b15952828c386 (patch) | |
tree | a6899cf46ca9938616e3c6f38c0f8aab353b8ee5 /app/helpers/tab_helper.rb | |
parent | bef328bb8c0e287ecd68e21bae40bdb335971212 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/tab_helper.rb')
-rw-r--r-- | app/helpers/tab_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/tab_helper.rb b/app/helpers/tab_helper.rb index a6bb2f3b246..d1046b7b668 100644 --- a/app/helpers/tab_helper.rb +++ b/app/helpers/tab_helper.rb @@ -210,3 +210,11 @@ module TabHelper current_page?(options) end end + +def gl_tab_counter_badge(count, html_options = {}) + badge_classes = %w[badge badge-muted badge-pill gl-badge sm gl-tab-counter-badge] + content_tag(:span, + count, + class: [*html_options[:class], badge_classes].join(' ') + ) +end |