summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 11:37:10 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 14:58:28 -0200
commit2ed51e7e257aaacba650397cba3191415d032b00 (patch)
tree17b55f679856f9723ad35007cfdad7c746e947d8
parent355389d065216739a2b8e8150a1a569c410f4ff6 (diff)
downloadgitlab-ce-2ed51e7e257aaacba650397cba3191415d032b00.tar.gz
Only show label type for projects that belong to a group
-rw-r--r--app/views/shared/_label_row.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/shared/_label_row.html.haml b/app/views/shared/_label_row.html.haml
index 76c3327fefc..d28f9421ecf 100644
--- a/app/views/shared/_label_row.html.haml
+++ b/app/views/shared/_label_row.html.haml
@@ -10,8 +10,9 @@
= icon('star')
%span.label-name
= link_to_label(label, subject: @project, tooltip: false)
- %span.label-type
- = label.model_name.human.titleize
+ - if defined?(@project) && @project.group.present?
+ %span.label-type
+ = label.model_name.human.titleize
- if label.description
%span.label-description
= markdown_field(label, :description)