diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-04 03:09:50 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-04 03:09:50 +0000 |
commit | 5da864991125a56a48b005389f84ecedf46f09eb (patch) | |
tree | 93c00d53e68a34a78e4a03c1044db5a280b5bdcf /app/helpers/snippets_helper.rb | |
parent | 20922701092f8a34c6ca6afca09e38587662c00e (diff) | |
download | gitlab-ce-5da864991125a56a48b005389f84ecedf46f09eb.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/snippets_helper.rb')
-rw-r--r-- | app/helpers/snippets_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/snippets_helper.rb b/app/helpers/snippets_helper.rb index 0fbede1806c..10c95da394f 100644 --- a/app/helpers/snippets_helper.rb +++ b/app/helpers/snippets_helper.rb @@ -60,9 +60,9 @@ module SnippetsHelper def snippet_badge(snippet) return unless attrs = snippet_badge_attributes(snippet) - css_class, text = attrs + icon_name, text = attrs tag.span(class: %w[badge badge-gray]) do - concat(tag.i(class: ['fa', css_class])) + concat(sprite_icon(icon_name, size: 14, css_class: 'gl-vertical-align-middle')) concat(' ') concat(text) end @@ -70,7 +70,7 @@ module SnippetsHelper def snippet_badge_attributes(snippet) if snippet.private? - ['fa-lock', _('private')] + ['lock', _('private')] end end |