diff options
author | Phil Hughes <me@iamphill.com> | 2016-03-01 09:11:46 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-03-02 17:06:01 +0000 |
commit | 61c30061e7f36ada8da0459ea15561197bd48295 (patch) | |
tree | de7c2328c26cf8c4186325471e137c1de2c504c6 /app/helpers | |
parent | 1fe9b933293c5bfd846d5a0b0334fc8426b8e067 (diff) | |
download | gitlab-ce-61c30061e7f36ada8da0459ea15561197bd48295.tar.gz |
audit log UI update
Closes #13862
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/icons_helper.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb index 84c6d0883b0..ab3ef454e1c 100644 --- a/app/helpers/icons_helper.rb +++ b/app/helpers/icons_helper.rb @@ -10,6 +10,15 @@ module IconsHelper options.include?(:base) ? fa_stacked_icon(names, options) : fa_icon(names, options) end + def audit_icon(names, options = {}) + case names + when "standard" + names = "key" + end + + options.include?(:base) ? fa_stacked_icon(names, options) : fa_icon(names, options) + end + def spinner(text = nil, visible = false) css_class = 'loading' css_class << ' hide' unless visible @@ -37,7 +46,7 @@ module IconsHelper else # Gitlab::VisibilityLevel::PUBLIC 'globe' end - + name << " fw" if fw icon(name) |