Only show label type for projects that belong to a group

parent 355389d0
......@@ -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)
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