Only show label type for projects that belong to a group

This commit is contained in:
Douglas Barbosa Alexandre 2016-10-19 11:37:10 -02:00
parent 355389d065
commit 2ed51e7e25
1 changed files with 3 additions and 2 deletions

View File

@ -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)