Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2018-01-27 01:42:42 +0300
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2018-01-30 00:38:36 +0300
commit0ef1a582b625f7f6f52e377fc62dc526da34cfb6 (patch)
treee75277b93c019b4772c9920b737df1953fd6a9d5 /app/views/shared/_delete_label_modal.html.haml
parentaf6aaf39f996e888ecfc536a42f25610623f6e02 (diff)
Add modal for label deletion
Diffstat (limited to 'app/views/shared/_delete_label_modal.html.haml')
-rw-r--r--app/views/shared/_delete_label_modal.html.haml20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/shared/_delete_label_modal.html.haml b/app/views/shared/_delete_label_modal.html.haml
new file mode 100644
index 00000000000..f29c8f00d52
--- /dev/null
+++ b/app/views/shared/_delete_label_modal.html.haml
@@ -0,0 +1,20 @@
+.modal{ id: "modal-delete-label-#{label.id}", tabindex: -1 }
+ .modal-dialog
+ .modal-content
+ .modal-header
+ %button.close{ data: {dismiss: 'modal' } } &times;
+ %h3.page-title Delete #{render_colored_label(label, tooltip: false)} ?
+
+ .modal-body
+ %p
+ %strong #{label.name}
+ will be permanently deleted from #{label.group.name}. This cannot be undone.
+
+ .modal-footer
+ %a{ href: '#', data: { dismiss: 'modal' }, class: 'btn btn-default' } Cancel
+
+ = link_to 'Delete label',
+ destroy_label_path(label),
+ title: 'Delete',
+ method: :delete,
+ class: 'btn btn-remove'