Files
ctfd-cheaters/templates/cheaters.html
T

74 lines
2.7 KiB
HTML

{% extends "admin/base.html" %}
{% block content %}
<div class="jumbotron">
<div class="container">
<h1>Cheat Monitor</h1>
<p class="text-muted mb-0">
Personal flags submitted by an account they don't belong to.
</p>
</div>
</div>
<div class="container">
<div id="cheat" class="row">
<div class="col-md-12">
{% if reports.items %}
<table class="table table-striped">
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">Challenge</th>
<th scope="col">Submitted by</th>
{% if teams_mode %}<th scope="col">Team</th>{% endif %}
<th scope="col">Flag owner</th>
{% if teams_mode %}<th scope="col">Owner's team</th>{% endif %}
<th scope="col">Flag</th>
<th scope="col">Date</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
{% for report in reports.items %}
<tr>
<th scope="row">{{ report.id }}</th>
<td><a href="{{ url_for('admin.challenges_detail', challenge_id=report.challenge.id) }}">{{ report.challenge.name }}</a></td>
<td><a href="{{ url_for('admin.users_detail', user_id=report.cheater.id) }}">{{ report.cheater.name }}</a></td>
{% if teams_mode %}
<td>{% if report.cheater.team %}<a href="{{ url_for('admin.teams_detail', team_id=report.cheater.team.id) }}">{{ report.cheater.team.name }}</a>{% endif %}</td>
{% endif %}
<td><a href="{{ url_for('admin.users_detail', user_id=report.owner.id) }}">{{ report.owner.name }}</a></td>
{% if teams_mode %}
<td>{% if report.owner.team %}<a href="{{ url_for('admin.teams_detail', team_id=report.owner.team.id) }}">{{ report.owner.team.name }}</a>{% endif %}</td>
{% endif %}
<td><code>{{ report.flag.content }}</code></td>
<td><span data-time="{{ report.date | isoformat }}"></span></td>
<td>
<form method="POST" action="{{ url_for(endpoint + '.dismiss_report', report_id=report.id) }}">
<input type="hidden" name="nonce" value="{{ Session.nonce }}">
<input type="hidden" name="page" value="{{ reports.page }}">
<button type="submit" class="btn btn-sm btn-outline-secondary" title="Dismiss this report">Dismiss</button>
</form>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% if reports.pages > 1 %}
<nav>
<ul class="pagination">
{% for page in range(1, reports.pages + 1) %}
<li class="page-item{{ ' active' if page == reports.page }}">
<a class="page-link" href="{{ url_for(endpoint + '.show_cheaters', page=page) }}">{{ page }}</a>
</li>
{% endfor %}
</ul>
</nav>
{% endif %}
{% else %}
<p class="text-center text-muted">No reports.</p>
{% endif %}
</div>
</div>
</div>
{% endblock %}