mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 01:23:48 +01:00
Swap edit and delete buttons in comments
This commit is contained in:
parent
2fb2f1ae49
commit
8d48723158
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user