summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jschatz1@gmail.com>2016-05-27 09:27:16 -0400
committerPhil Hughes <me@iamphill.com>2016-06-17 11:52:22 +0100
commit07d6edc15ba3db1f76b1b87c51d507f4dc654e1c (patch)
treee2bdff3c18dafbb10a8a1b192b54511b717d9533
parent92ed066ff59d02b070a2a80d9845e019be764f6f (diff)
downloadgitlab-ce-07d6edc15ba3db1f76b1b87c51d507f4dc654e1c.tar.gz
Revert _form file
-rw-r--r--app/views/shared/issuable/_form.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/shared/issuable/_form.html.haml b/app/views/shared/issuable/_form.html.haml
index 1f364be5b1c..c30bdb0ae91 100644
--- a/app/views/shared/issuable/_form.html.haml
+++ b/app/views/shared/issuable/_form.html.haml
@@ -146,5 +146,6 @@
- else
.pull-right
- if current_user.can?(:"destroy_#{issuable.to_ability_name}", @project)
- = 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' \ No newline at end of file
+ = 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'