summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorOtto Richter (fnetX) <github@fralix.ovh>2022-03-09 01:38:11 +0100
committerGitHub <noreply@github.com>2022-03-09 01:38:11 +0100
commitea46142bcea6084e50a11baf048f8eb8862285c7 (patch)
tree0b269d8e46c824e3a76ab1432cd528493de2b4c6 /templates/repo
parentddf7f1319f70e124acfd1e8e86dff4ff87290f51 (diff)
downloadgitea-ea46142bcea6084e50a11baf048f8eb8862285c7.tar.gz
gitea-ea46142bcea6084e50a11baf048f8eb8862285c7.zip
Add button for issue deletion (#19032)
Co-authored-by: Norwin <noerw@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/issue/view_content/sidebar.tmpl21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index 6198b6a621..65c1cf75e8 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -645,6 +645,27 @@
</form>
</div>
</div>
+ <button class="fluid ui show-modal button negative mt-3" data-modal="#delete">
+ {{svg "octicon-trash"}}
+ {{.i18n.Tr "repo.issues.delete"}}
+ </button>
+ <div class="ui basic modal" id="delete">
+ <div class="ui icon header">
+ {{.i18n.Tr "repo.issues.delete.title"}}
+ </div>
+ <div class="content center">
+ <p>
+ {{.i18n.Tr "repo.issues.delete.text"}}
+ </p>
+ </div>
+ <form action="{{.Issue.Link}}/delete" method="post">
+ {{.CsrfTokenHtml}}
+ <div class="center actions">
+ <div class="ui basic cancel inverted button">{{.i18n.Tr "settings.cancel"}}</div>
+ <button class="ui basic red inverted button">{{.i18n.Tr "modal.yes"}}</button>
+ </div>
+ </form>
+ </div>
{{end}}
</div>
</div>