gitlab-org--gitlab-foss/app/views/shared/_label_row.html.haml

19 lines
833 B
Text
Raw Normal View History

2016-04-14 06:16:24 -04:00
%span.label-row
2016-06-06 10:40:35 -04:00
- if can?(current_user, :admin_label, @project)
2016-06-14 12:48:42 -04:00
.draggable-handler
= icon('bars')
.js-toggle-priority.toggle-priority{ data: { url: remove_priority_namespace_project_label_path(@project.namespace, @project, label),
dom_id: dom_id(label), type: label.type } }
%button.add-priority.btn.has-tooltip{ title: 'Prioritize', :'data-placement' => 'top' }
= icon('star-o')
%button.remove-priority.btn.has-tooltip{ title: 'Remove priority', :'data-placement' => 'top' }
= icon('star')
2016-04-14 06:16:24 -04:00
%span.label-name
= link_to_label(label, subject: @project, tooltip: false)
- if defined?(@project) && @project.group.present?
%span.label-type
= label.model_name.human.titleize
2016-05-24 05:29:26 -04:00
- if label.description
%span.label-description
= markdown_field(label, :description)