Style changes
This commit is contained in:
parent
ba3ed04b44
commit
d53677ea66
25 changed files with 389 additions and 371 deletions
|
|
@ -5,48 +5,48 @@
|
|||
{% block content %}
|
||||
<h1>Manage accounts</h1>
|
||||
|
||||
<div class="inner-content">
|
||||
{% if current_user.is_admin %}
|
||||
<p>
|
||||
Here is the list of users registered on {{ app_name }}, in reverse chronological order.
|
||||
<strong>Beware: you are managing sensitive informations.</strong>
|
||||
</p>
|
||||
<p>
|
||||
Here is the list of users registered on {{ app_name }}, in reverse chronological order.
|
||||
<strong>Beware: you are managing sensitive informations.</strong>
|
||||
</p>
|
||||
|
||||
<p class="nl-pagination">Showing results <strong>{{ page_n * 20 - 19 }}</strong> to <strong>{{ min(page_n * 20, total_count) }}</strong> of <strong>{{ total_count }}</strong> total.</p>
|
||||
<p class="nl-pagination">Showing results <strong>{{ page_n * 20 - 19 }}</strong> to <strong>{{ min(page_n * 20, total_count) }}</strong> of <strong>{{ total_count }}</strong> total.</p>
|
||||
|
||||
<form enctype="multipart/form-data" method="POST">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||
|
||||
<ul>
|
||||
{% if page_n > 1 %}
|
||||
<li class="nl-prev"><a href="?page={{ page_n - 1 }}">« Previous page</a></li>
|
||||
{% endif %}
|
||||
<form enctype="multipart/form-data" method="POST">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||
|
||||
{% for u in users %}
|
||||
<li>
|
||||
<input type="checkbox" name="u{{ u.id }}">
|
||||
<a href="/@{{ u.username }}">{{ u.username }}</a>
|
||||
{% if u == current_user %}<strong>(you)</strong>{% endif %}
|
||||
-
|
||||
Groups:
|
||||
<ul class="inline">
|
||||
{% for ug in u.groups %}
|
||||
<li>{{ ug.name }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
-
|
||||
Registered on:
|
||||
{{ u.join_date }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
<ul>
|
||||
{% if page_n > 1 %}
|
||||
<li class="nl-prev"><a href="?page={{ page_n - 1 }}">« Previous page</a></li>
|
||||
{% endif %}
|
||||
|
||||
{% for u in users %}
|
||||
<li>
|
||||
<input type="checkbox" name="u{{ u.id }}">
|
||||
<a href="/@{{ u.username }}">{{ u.username }}</a>
|
||||
{% if u == current_user %}<strong>(you)</strong>{% endif %}
|
||||
-
|
||||
Groups:
|
||||
<ul class="inline">
|
||||
{% for ug in u.groups %}
|
||||
<li>{{ ug.name }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
-
|
||||
Registered on:
|
||||
{{ u.join_date }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
{% if page_n < total_count // 20 %}
|
||||
<li class="nl-next"><a href="?page={{ page_n + 1 }}">Next page »</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
|
||||
</form>
|
||||
{% else %}
|
||||
<p>Managing accounts can be done by users with Admin permissions only.</p>
|
||||
{% endif %}
|
||||
{% if page_n < total_count // 20 %}
|
||||
<li class="nl-next"><a href="?page={{ page_n + 1 }}">Next page »</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</form>
|
||||
{% else %}
|
||||
<p>Managing accounts can be done by users with Admin permissions only.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue