summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/show.html.haml
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-12 11:58:48 +0100
committerPhil Hughes <me@iamphill.com>2017-05-15 11:33:31 +0100
commit3bd37bc4a0d6b8ab6ebaabc2ee1c130201b20a21 (patch)
tree6a52c734aea370000d887cb763a39eeae6e0db48 /app/views/projects/issues/show.html.haml
parent86700b97d3a357b572e6eb92759a64d594aa06c5 (diff)
downloadgitlab-ce-3bd37bc4a0d6b8ab6ebaabc2ee1c130201b20a21.tar.gz
Shows delete button if permissions are correct
[ci skip]
Diffstat (limited to 'app/views/projects/issues/show.html.haml')
-rw-r--r--app/views/projects/issues/show.html.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/projects/issues/show.html.haml b/app/views/projects/issues/show.html.haml
index d33e2a7491d..d0783009a58 100644
--- a/app/views/projects/issues/show.html.haml
+++ b/app/views/projects/issues/show.html.haml
@@ -53,6 +53,7 @@
.detail-page-description.content-block
#js-issuable-app{ "data" => { "endpoint" => namespace_project_issue_path(@project.namespace, @project, @issue),
"can-update" => can?(current_user, :update_issue, @issue).to_s,
+ "can-destroy" => can?(current_user, :destroy_issue, @issue).to_s,
"issuable-ref" => @issue.to_reference,
} }
%h2.title= markdown_field(@issue, :title)