diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-03-22 14:02:11 +0100 |
---|---|---|
committer | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-03-22 14:06:03 +0100 |
commit | 73a8088e2cc8e7d9f08facf28d23c6401fa2ce43 (patch) | |
tree | 5e4fa07e123e8c30290e1e5990be4e01dbf255fc /app | |
parent | 8df6c3b9604ed7b762fd5485275e10f94e698664 (diff) | |
download | gitlab-ce-73a8088e2cc8e7d9f08facf28d23c6401fa2ce43.tar.gz |
User has to confirm deletion of issuables
Diffstat (limited to 'app')
-rw-r--r-- | app/views/shared/issuable/_form.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/shared/issuable/_form.html.haml b/app/views/shared/issuable/_form.html.haml index 551f0cc0b51..b01a36265f9 100644 --- a/app/views/shared/issuable/_form.html.haml +++ b/app/views/shared/issuable/_form.html.haml @@ -131,7 +131,8 @@ - else .pull-right - if current_user.can?(:"destroy_#{issuable.to_ability_name}", @project) - = link_to polymorphic_path([@project.namespace.becomes(Namespace), @project, issuable]), method: :delete, class: 'btn btn-grouped' do + = link_to polymorphic_path([@project.namespace.becomes(Namespace), @project, issuable]), data: { confirm: "#{issuable.class.name.titleize} will be removed! Are you sure?" }, + method: :delete, class: 'btn btn-grouped' do = icon('trash-o') Delete = link_to 'Cancel', namespace_project_issue_path(@project.namespace, @project, issuable), class: 'btn btn-grouped btn-cancel' |