From 0653ed21831b3f253d0dfa405d44c98f70699c4d Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 26 Aug 2025 15:04:01 +0100 Subject: [PATCH] Small tweaks to reporting interface --- app/blueprints/report/__init__.py | 2 +- app/templates/admin/list.html | 6 ++++++ app/templates/report/list.html | 2 +- app/templates/report/view.html | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) 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 %}

Packages

diff --git a/app/templates/report/list.html b/app/templates/report/list.html index 9d35cf7b..ceb8a333 100644 --- a/app/templates/report/list.html +++ b/app/templates/report/list.html @@ -17,7 +17,7 @@ Closed {% else %} - + Open {% endif %} diff --git a/app/templates/report/view.html b/app/templates/report/view.html index 4387984b..56d9bd28 100644 --- a/app/templates/report/view.html +++ b/app/templates/report/view.html @@ -12,7 +12,7 @@ {% block content %}

- Back to reports + Back to reports

@@ -21,7 +21,7 @@ Closed {% else %} - + Open {% endif %}