Only show label type for projects that belong to a group

parent 355389d0
...@@ -10,8 +10,9 @@ ...@@ -10,8 +10,9 @@
= icon('star') = icon('star')
%span.label-name %span.label-name
= link_to_label(label, subject: @project, tooltip: false) = link_to_label(label, subject: @project, tooltip: false)
%span.label-type - if defined?(@project) && @project.group.present?
= label.model_name.human.titleize %span.label-type
= label.model_name.human.titleize
- if label.description - if label.description
%span.label-description %span.label-description
= markdown_field(label, :description) = markdown_field(label, :description)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment