aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-11 04:29:59 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-11 04:29:59 +0100
commit8d487231583e3597a28cdb348be0b410dd3446ea (patch)
tree649b0f1f36458586cd34e14c2aaef0010b1b2ada
parent2fb2f1ae49e1e7e7069523f3d65f21a117571dd3 (diff)
downloadcheatdb-8d487231583e3597a28cdb348be0b410dd3446ea.tar.xz
Swap edit and delete buttons in comments
-rw-r--r--app/templates/macros/threads.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/templates/macros/threads.html b/app/templates/macros/threads.html
index 21283d7..d19aae5 100644
--- a/app/templates/macros/threads.html
+++ b/app/templates/macros/threads.html
@@ -22,6 +22,13 @@
</div>
<div class="card-body">
+ {% if r.checkPerm(current_user, "DELETE_REPLY") %}
+ <a class="float-right btn btn-secondary btn-sm ml-2"
+ href="{{ url_for('threads.delete_reply', id=thread.id, reply=r.id) }}">
+ <i class="fas fa-trash"></i>
+ </a>
+ {% endif %}
+
{% if current_user == thread.author and thread.review and thread.replies[0] == r %}
<a class="float-right btn btn-primary btn-sm ml-2"
href="{{ thread.review.package.getReviewURL() }}">
@@ -34,13 +41,6 @@
</a>
{% endif %}
- {% if r.checkPerm(current_user, "DELETE_REPLY") %}
- <a class="float-right btn btn-secondary btn-sm ml-2"
- href="{{ url_for('threads.delete_reply', id=thread.id, reply=r.id) }}">
- <i class="fas fa-trash"></i>
- </a>
- {% endif %}
-
{{ r.comment | markdown }}
</div>
</div>