31 lines
1.3 KiB
HTML
31 lines
1.3 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}{{ _('Admin · Reports') }}{% endblock %}
|
|
{% block content %}
|
|
{% include "admin/_nav.html" %}
|
|
<div class="card">
|
|
<h2>{{ _('Open reports') }}</h2>
|
|
{% if not reports %}<p class="muted">{{ _('No open reports.') }}</p>{% endif %}
|
|
<table class="list">
|
|
{% for r in reports %}
|
|
<tr>
|
|
<td><a href="{{ url_for('listings.detail', listing_id=r.listing_id) }}">{{ r.listing.title }}</a></td>
|
|
<td>{{ r.reporter.display_name }}</td>
|
|
<td><span class="badge cat">{{ r.reason.value }}</span></td>
|
|
<td class="muted small">{{ r.note or '—' }}</td>
|
|
<td class="muted small">{{ r.created_at.strftime('%Y-%m-%d') }}</td>
|
|
<td>
|
|
<form method="post" action="{{ url_for('admin.dismiss_report', report_id=r.id) }}" style="display:inline">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button class="btn ghost tiny" type="submit">{{ _('Dismiss') }}</button>
|
|
</form>
|
|
<form method="post" action="{{ url_for('admin.escalate_report', report_id=r.id) }}" style="display:inline">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button class="btn tiny" type="submit">{{ _('Escalate') }}</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|