diff options
author | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-04-11 17:20:38 -0500 |
---|---|---|
committer | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-04-11 17:20:38 -0500 |
commit | 72e2c1db19fe9a3f45e5df89c03e8077e064ec8b (patch) | |
tree | 457499f05549705dd4180711676eadc8be29edb2 | |
parent | 7998725e3c2557c04ceece028dd73a316a3a746c (diff) | |
download | gitlab-ce-14762-delete-button.tar.gz |
Update delete button14762-delete-button
-rw-r--r-- | app/views/shared/issuable/_form.html.haml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/shared/issuable/_form.html.haml b/app/views/shared/issuable/_form.html.haml index 757a3812deb..4b4078cb8a0 100644 --- a/app/views/shared/issuable/_form.html.haml +++ b/app/views/shared/issuable/_form.html.haml @@ -128,8 +128,6 @@ - else .pull-right - if current_user.can?(:"destroy_#{issuable.to_ability_name}", @project) - = 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 'Delete', 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-danger btn-grouped' = link_to 'Cancel', polymorphic_path([@project.namespace.becomes(Namespace), @project, issuable]), class: 'btn btn-grouped btn-cancel' |