Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-20 21:08:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-20 21:08:54 +0300
commit2f852fc2ebbdbd7c28d182b35fe63025ebbe8274 (patch)
treee761438a1ba0c87885d78f944cf5e7332f9aa1a5 /app/helpers/icons_helper.rb
parent6b5e293c6d5c678e78f2a0933d636a33e4723061 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/icons_helper.rb')
-rw-r--r--app/helpers/icons_helper.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb
index 1d0001fde72..9fe56efedca 100644
--- a/app/helpers/icons_helper.rb
+++ b/app/helpers/icons_helper.rb
@@ -76,17 +76,17 @@ module IconsHelper
content_tag(:span, "", class: "gl-snippet-icon gl-snippet-icon-#{name}")
end
- def audit_icon(names, options = {})
- case names
+ def audit_icon(name, css_class: nil)
+ case name
when "standard"
- names = "key"
+ name = "key"
when "two-factor"
- names = "key"
+ name = "key"
when "google_oauth2"
- names = "google"
+ name = "google"
end
- options.include?(:base) ? fa_stacked_icon(names, options) : fa_icon(names, options)
+ sprite_icon(name, css_class: css_class)
end
def spinner(text = nil, visible = false)