BigW Consortium Gitlab

_label_row.html.haml 833 Bytes
Newer Older
Arinde Eniola committed
1
%span.label-row
2
  - if can?(current_user, :admin_label, @project)
3 4
    .draggable-handler
      = icon('bars')
5
    .js-toggle-priority.toggle-priority{ data: { url: remove_priority_namespace_project_label_path(@project.namespace, @project, label),
6
      dom_id: dom_id(label), type: label.type } }
7 8 9 10
      %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')
Arinde Eniola committed
11
  %span.label-name
12
    = link_to_label(label, subject: @project, tooltip: false)
13 14 15
  - if defined?(@project) && @project.group.present?
    %span.label-type
      = label.model_name.human.titleize
Phil Hughes committed
16 17
  - if label.description
    %span.label-description
18
      = markdown_field(label, :description)