mirror of
https://github.com/ProjectSynthoria/SynthoriaArchive.git
synced 2025-03-12 07:26:54 +02:00
38 lines
1 KiB
HTML
38 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 %}
|