Small tweaks to reporting interface

This commit is contained in:
rubenwardy
2025-08-26 15:04:01 +01:00
parent a9f82b6e1b
commit 0653ed2183
4 changed files with 10 additions and 4 deletions

View File

@@ -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)

View File

@@ -21,6 +21,12 @@
{{ _("Audit Log") }}
</a>
{% endif %}
{% if current_user.rank.at_least(current_user.rank.MODERATOR) %}
<a class="list-group-item list-group-item-action" href="{{ url_for('report.list_all') }}">
<i class="fas fa-user-clock me-2"></i>
Reports
</a>
{% endif %}
</div>
<h3>Packages</h3>

View File

@@ -17,7 +17,7 @@
Closed
</span>
{% else %}
<span class="badge bg-warning me-3">
<span class="badge bg-info me-3">
Open
</span>
{% endif %}

View File

@@ -12,7 +12,7 @@
{% block content %}
<p>
<a href="{{ url_for('report.list_all') }}">Back to reports</a>
<a class="btn bg-secondary" href="{{ url_for('report.list_all') }}">Back to reports</a>
</p>
<h1>
@@ -21,7 +21,7 @@
Closed
</span>
{% else %}
<span class="badge bg-warning me-3">
<span class="badge bg-info me-3">
Open
</span>
{% endif %}