diff --git a/app/blueprints/report/__init__.py b/app/blueprints/report/__init__.py index de41513c..29db02ce 100644 --- a/app/blueprints/report/__init__.py +++ b/app/blueprints/report/__init__.py @@ -83,7 +83,7 @@ def report(): @bp.route("/admin/reports/") @rank_required(UserRank.MODERATOR) def list_all(): - reports = Report.query.order_by(db.desc(Report.is_resolved), db.desc(Report.created_at)).all() + reports = Report.query.order_by(db.asc(Report.is_resolved), db.asc(Report.created_at)).all() return render_template("report/list.html", reports=reports) diff --git a/app/templates/admin/list.html b/app/templates/admin/list.html index 73ad8b63..ab8b5465 100644 --- a/app/templates/admin/list.html +++ b/app/templates/admin/list.html @@ -21,6 +21,12 @@ {{ _("Audit Log") }} {% endif %} + {% if current_user.rank.at_least(current_user.rank.MODERATOR) %} + + + Reports + + {% endif %}
- Back to reports + Back to reports