summaryrefslogtreecommitdiff
path: root/app/views/admin/labels/_label.html.haml
blob: 333c865629f872c2149cbb872be89b94811a63d1 (plain)
1
2
3
4
5
6
7
%li.label-list-item{ id: dom_id(label) }
  = render "shared/label_row", label: label.present(issuable_subject: nil)
  .label-actions-list
    = link_to edit_admin_label_path(label), class: 'btn btn-default gl-button btn-default-tertiary label-action has-tooltip', title: _('Edit'), data: { placement: 'bottom' }, aria: { label: _('Edit') } do
      = sprite_icon('pencil')
    = link_to admin_label_path(label), class: 'btn btn-default gl-button btn-default-tertiary hover-red js-remove-label label-action has-tooltip', title: _('Delete'), data: { placement: 'bottom', confirm: _('Are you sure you want to delete this label?'), confirm_btn_variant: 'danger' }, aria: { label: _('Delete label') }, method: :delete, remote: true do
      = sprite_icon('remove')