8ce4b6093a
When rendering a label we want to check 'scoped_label' feature availability on a project/group where label is being used. For this reason a label presenter is used in UI and information about context project/group is passed to this presenter.
21 lines
741 B
Text
21 lines
741 B
Text
.modal{ id: "modal-delete-label-#{label.id}", tabindex: -1 }
|
|
.modal-dialog
|
|
.modal-content
|
|
.modal-header
|
|
%h3.page-title Delete #{render_label(label, tooltip: false)} ?
|
|
%button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
|
|
%span{ "aria-hidden": true } ×
|
|
|
|
.modal-body
|
|
%p
|
|
%strong= label.name
|
|
%span will be permanently deleted from #{label.subject.name}. This cannot be undone.
|
|
|
|
.modal-footer
|
|
%a{ href: '#', data: { dismiss: 'modal' }, class: 'btn btn-default' } Cancel
|
|
|
|
= link_to 'Delete label',
|
|
label.destroy_path,
|
|
title: 'Delete',
|
|
method: :delete,
|
|
class: 'btn btn-remove'
|