1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-06-10 02:08:29 +00:00
nyaa/nyaa/templates/adminlog.html
A nyaa developer f8a314df4f Better bans (#341)
* better bans

* put jinja2 template into correct file
2017-08-25 18:53:35 -04:00

39 lines
1 KiB
HTML

{% extends "layout.html" %}
{% block title %}Admin Log :: {{ config.SITE_NAME }}{% endblock %}
{% block body %}
{% from "_formhelpers.html" import render_field %}
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<thead>
<tr>
<th>#</th>
<th>Moderator/Admin</th>
<th>Log</th>
<th>Date</th>
</tr>
</thead>
<tbody>
{% for log in adminlog.items %}
<tr>
<td>{{ log.id }}</td>
<td>
<a href="{{ url_for('users.view_user', user_name=log.admin.username) }}">{{ log.admin.username }}</a>
</td>
{% if g.user.is_superadmin %}
<td><div markdown-text-inline>{{ log.log }}</div></td>
{% else %}
<td><div markdown-text-inline>{{ log.log | regex_replace("IP\(.*?\)", "IP(hidden)" )}}</div></td>
{% endif %}
<td>{{ log.created_time }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class=pagination>
{% from "bootstrap/pagination.html" import render_pagination %}
{{ render_pagination(adminlog) }}
</div>
{% endblock %}