summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jschatz1@gmail.com>2016-02-22 20:34:31 +0000
committerJacob Schatz <jschatz1@gmail.com>2016-02-22 20:34:31 +0000
commit7c8099853621cc2a244bf6e0fd37a8b503d1ec5e (patch)
tree516b23605a2cb9df1bc046247eead98c794c5f4c
parent54a5b8831aaaac32b8b5588e59c892e0c27d2f0b (diff)
parent49a95d98583de33715722551f9dd11aa63ebb734 (diff)
downloadgitlab-ce-7c8099853621cc2a244bf6e0fd37a8b503d1ec5e.tar.gz
Merge branch 'project-type-icon-your-projects' into 'master'
Show project visibility level on project list Fixes #3779 ![Screen_Shot_2016-02-22_at_10.08.58](/uploads/611cc8aa2d12591d4fe6a70ba0f45d68/Screen_Shot_2016-02-22_at_10.08.58.png) See merge request !2908
-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),