summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-02-22 10:08:44 +0000
committerPhil Hughes <me@iamphill.com>2016-02-22 10:08:44 +0000
commit49a95d98583de33715722551f9dd11aa63ebb734 (patch)
tree9b56535484a3507ba18b94a0a880fe3ed3f7bf91
parent04d1b412587028260ac219a32bdf3b03ac022308 (diff)
downloadgitlab-ce-project-type-icon-your-projects.tar.gz
Show project visibility level on project listproject-type-icon-your-projects
Fixes #3779
-rw-r--r--app/views/shared/projects/_project.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/shared/projects/_project.html.haml b/app/views/shared/projects/_project.html.haml
index 97db5b1d41e..72061e272f1 100644
--- a/app/views/shared/projects/_project.html.haml
+++ b/app/views/shared/projects/_project.html.haml
@@ -39,6 +39,9 @@
%span
= icon('star')
= project.star_count
+ %span.visibility-icon.has_tooltip{data: { container: 'body', placement: 'left' },
+ title: "#{visibility_level_label(project.visibility_level)} - #{project_visibility_level_description(project.visibility_level)}"}
+ = visibility_level_icon(project.visibility_level, fw: false)
- if show_last_commit_as_description
.project-description
= link_to_gfm project.commit.title, namespace_project_commit_path(project.namespace, project, project.commit),