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:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-05 18:10:01 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-05 18:10:01 +0300
commit153d844029d825b89816bff5b926b51f24cc9b51 (patch)
tree50ecd455fd4620fdc3f1c700e25a0b3a747be0fa /app/helpers/icons_helper.rb
parentbe4856c4ce9580cd76e3b68e3b4b8b0546af5331 (diff)
Review changes
Diffstat (limited to 'app/helpers/icons_helper.rb')
-rw-r--r--app/helpers/icons_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb
index ab3ef454e1c..f17528b8b78 100644
--- a/app/helpers/icons_helper.rb
+++ b/app/helpers/icons_helper.rb
@@ -37,9 +37,12 @@ module IconsHelper
end
def visibility_level_icon(level, fw: true)
+ options = {}
+
name =
case level
when Gitlab::VisibilityLevel::PRIVATE
+ options[:class] = 'private'
'lock'
when Gitlab::VisibilityLevel::INTERNAL
'shield'
@@ -49,7 +52,7 @@ module IconsHelper
name << " fw" if fw
- icon(name)
+ icon(name, options)
end
def file_type_icon_class(type, mode, name)