diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 16:37:10 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 19:58:28 +0300 |
commit | 2ed51e7e257aaacba650397cba3191415d032b00 (patch) | |
tree | 17b55f679856f9723ad35007cfdad7c746e947d8 /app/views | |
parent | 355389d065216739a2b8e8150a1a569c410f4ff6 (diff) |
Only show label type for projects that belong to a group
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/shared/_label_row.html.haml | 5 |
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) |