]> git.lizzy.rs Git - cheatdb.git/commitdiff
Swap edit and delete buttons in comments
authorrubenwardy <rw@rubenwardy.com>
Sat, 11 Jul 2020 03:29:59 +0000 (04:29 +0100)
committerrubenwardy <rw@rubenwardy.com>
Sat, 11 Jul 2020 03:29:59 +0000 (04:29 +0100)
app/templates/macros/threads.html

index 21283d794c67c1420fd1208c1ec9f32fca8a2d40..d19aae571056c0d9819f8c5f2809b69215369c08 100644 (file)
                                </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() }}">
                                                </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>