partitioncloud-server/partitioncloud/templates/admin/index.html

48 lines
1.5 KiB
HTML
Raw Normal View History

2022-08-31 13:54:13 +02:00
{% extends 'base.html' %}
{% block content %}
<h2>{% block title %}{{ _("Administration Panel") }}{% endblock %}</h2>
2022-12-19 15:19:58 +01:00
<div id="actions-rapides">
<a href="/add-user">
<div class="button">{{ _("New user") }}</div>
</a>
<a href="/partition">
<div class="button">{{ _("See scores") }}</div>
2024-01-19 13:38:05 +01:00
</a>
<a href="/admin/logs">
<div class="button">{{ _("See logs") }}</div>
</a>
2022-12-19 15:19:58 +01:00
</div>
<div class="x-scrollable">
<table>
<thead>
<tr>
<th scope="col">{{ _("User") }}</th>
2024-01-25 16:22:04 +01:00
<th scope="col">{{ _("Albums") }}</th>
<th scope="col">{{ _("Scores") }}</th>
<th scope="col">{{ _("Admin privileges") }}</th>
</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>
</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 %}