diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2018-04-16 15:05:01 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-04-16 15:05:01 +0000 |
commit | 6384aedace16fff336ff2a29d526ad8fcdfc2b84 (patch) | |
tree | f8699aff6fb0d4e1a646d76ff2720520cd7c0652 /app/helpers/icons_helper.rb | |
parent | b3d8b85f6520c8f89690a8f0e3ab96f5e6740cb2 (diff) | |
parent | 5d6fb753ef3288c3da7e63470b7acd3694d86137 (diff) | |
download | gitlab-ce-6384aedace16fff336ff2a29d526ad8fcdfc2b84.tar.gz |
Merge branch 'master' into 'bootstrap4'
# Conflicts:
# app/views/admin/application_settings/_signin.html.haml
Diffstat (limited to 'app/helpers/icons_helper.rb')
-rw-r--r-- | app/helpers/icons_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb index 08b7168b117..58372edff3c 100644 --- a/app/helpers/icons_helper.rb +++ b/app/helpers/icons_helper.rb @@ -43,6 +43,10 @@ module IconsHelper content_tag(:svg, content_tag(:use, "", { "xlink:href" => "#{sprite_icon_path}##{icon_name}" } ), class: css_classes.empty? ? nil : css_classes) end + def external_snippet_icon(name) + content_tag(:span, "", class: "gl-snippet-icon gl-snippet-icon-#{name}") + end + def audit_icon(names, options = {}) case names when "standard" |