aboutsummaryrefslogtreecommitdiff
path: root/app/templates/threads/delete_reply.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-11 03:29:33 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-11 03:29:38 +0100
commit31b8a7931bdb95b296e236c11705206507b035d8 (patch)
treedafcdca8f5dea95a326c08125f7d035be812ddd9 /app/templates/threads/delete_reply.html
parenta4dd4f04293b6ad6dab5d3dc0a4c52a3290b4394 (diff)
downloadcheatdb-31b8a7931bdb95b296e236c11705206507b035d8.tar.xz
Add ability for moderators to delete comments
Diffstat (limited to 'app/templates/threads/delete_reply.html')
-rw-r--r--app/templates/threads/delete_reply.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/templates/threads/delete_reply.html b/app/templates/threads/delete_reply.html
new file mode 100644
index 0000000..6c145df
--- /dev/null
+++ b/app/templates/threads/delete_reply.html
@@ -0,0 +1,22 @@
+{% extends "base.html" %}
+
+{% block title %}
+ Delete reply in {{ thread.title }}
+{% endblock %}
+
+{% block content %}
+ <form method="POST" action="" class="card box_grey">
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
+
+ <h3 class="card-header">Delete reply by {{ reply.author.display_name }}</h3>
+ <div class="card-body">
+ {{ reply.comment | markdown }}
+ </div>
+ <div class="card-body">
+ <p>Deleting is permanent</p>
+
+ <a class="btn btn-secondary mr-3" href="{{ thread.getViewURL() }}">Cancel</a>
+ <input type="submit" value="Delete" class="btn btn-danger" />
+ </div>
+ </form>
+{% endblock %}