final upload

This commit is contained in:
2025-06-27 16:50:35 +03:00
parent d154853c7d
commit 67c9083a6e
24 changed files with 760 additions and 322 deletions

View File

@@ -137,6 +137,35 @@
</div>
{% endif %}
</div>
<!-- Server Activity Log Section -->
{% if current_user.role == 'admin' %}
<div class="card mb-4 {{ 'dark-mode' if theme == 'dark' else '' }}">
<div class="card-header bg-secondary text-white">
<h2>Server Activity Log</h2>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-striped {{ 'table-dark' if theme == 'dark' else '' }}">
<thead>
<tr>
<th>Time</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for log in server_logs %}
<tr>
<td>{{ log.timestamp.strftime('%Y-%m-%d %H:%M:%S') }}</td>
<td>{{ log.action }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endif %}
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"></script>