diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 12:16:11 +0300 |
commit | edaa33dee2ff2f7ea3fac488d41558eb5f86d68c (patch) | |
tree | 11f143effbfeba52329fb7afbd05e6e2a3790241 /app/helpers/snippets_helper.rb | |
parent | d8a5691316400a0f7ec4f83832698f1988eb27c1 (diff) |
Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42
Diffstat (limited to 'app/helpers/snippets_helper.rb')
-rw-r--r-- | app/helpers/snippets_helper.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/helpers/snippets_helper.rb b/app/helpers/snippets_helper.rb index e9ef9146529..ca90d1e13c1 100644 --- a/app/helpers/snippets_helper.rb +++ b/app/helpers/snippets_helper.rb @@ -26,11 +26,8 @@ module SnippetsHelper return unless attrs = snippet_badge_attributes(snippet) icon_name, text = attrs - tag.span(class: %w[badge badge-gray]) do - concat(sprite_icon(icon_name, size: 14, css_class: 'gl-vertical-align-middle')) - concat(' ') - concat(text) - end + + gl_badge_tag(text, icon: icon_name) end def snippet_badge_attributes(snippet) |