2022-08-31 13:54:13 +02:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
2024-01-26 09:48:11 +01:00
|
|
|
<h2>{% block title %}{{ _("Administration Panel") }}{% endblock %}</h2>
|
2023-06-23 22:19:00 +02:00
|
|
|
|
2022-12-19 15:19:58 +01:00
|
|
|
<div id="actions-rapides">
|
2023-06-23 22:19:00 +02:00
|
|
|
<a href="/add-user">
|
2024-01-26 09:48:11 +01:00
|
|
|
<div class="button">{{ _("New user") }}</div>
|
2023-06-23 22:19:00 +02:00
|
|
|
</a>
|
|
|
|
<a href="/partition">
|
2024-01-26 09:48:11 +01:00
|
|
|
<div class="button">{{ _("See scores") }}</div>
|
2024-01-19 13:38:05 +01:00
|
|
|
</a>
|
|
|
|
<a href="/admin/logs">
|
2024-01-26 09:48:11 +01:00
|
|
|
<div class="button">{{ _("See logs") }}</div>
|
2023-06-23 22:19:00 +02:00
|
|
|
</a>
|
2022-12-19 15:19:58 +01:00
|
|
|
</div>
|
2023-09-30 00:33:09 +02:00
|
|
|
<div class="x-scrollable">
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2024-01-26 09:48:11 +01:00
|
|
|
<th scope="col">{{ _("User") }}</th>
|
2024-01-25 16:22:04 +01:00
|
|
|
<th scope="col">{{ _("Albums") }}</th>
|
2024-01-26 09:48:11 +01:00
|
|
|
<th scope="col">{{ _("Scores") }}</th>
|
|
|
|
<th scope="col">{{ _("Admin privileges") }}</th>
|
2023-09-30 00:33:09 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for user in users %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="user-profile">
|
|
|
|
<div class="user-profile-picture" style="background-color:{{ user.color }};"
|
|
|
|
title="{{ user.username }}">
|
|
|
|
{{ user.username[0] | upper }}
|
|
|
|
</div>
|
|
|
|
<div class="table-username">{{ user.username }}</div>
|
2022-08-31 13:54:13 +02:00
|
|
|
</div>
|
2023-09-30 00:33:09 +02:00
|
|
|
</td>
|
|
|
|
<td>{{ user.albums | length }}</td>
|
|
|
|
<td>{{ user.partitions | length }}</td>
|
|
|
|
<td>{% if user.access_level != 1 %}❌{% else %}✅{% endif %}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2022-08-31 13:54:13 +02:00
|
|
|
{% endblock %}
|