2018-09-09 10:25:55 +00:00
|
|
|
{% extends "base" %}
|
|
|
|
{% import "macros" as macros %}
|
|
|
|
|
|
|
|
{% block title %}
|
2018-09-11 18:30:24 +00:00
|
|
|
{{ "Users" | _ }}
|
2018-09-09 10:25:55 +00:00
|
|
|
{% endblock title %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>{{ "Users" | _ }}</h1>
|
|
|
|
|
|
|
|
{{ macros::tabs(links=['/admin', '/admin/instances', '/admin/users'], titles=['Configuration', 'Instances', 'Users'], selected=3) }}
|
|
|
|
|
|
|
|
<div class="list">
|
|
|
|
{% for user in users %}
|
|
|
|
<div class="flex">
|
2018-09-09 20:41:55 +00:00
|
|
|
{{ macros::avatar(user=user) }}
|
2018-09-09 10:25:55 +00:00
|
|
|
<p class="grow">
|
|
|
|
<a href="/@/{{ user.fqn }}">{{ user.name }}</a>
|
|
|
|
<small>@{{ user.username }}</small>
|
|
|
|
</p>
|
|
|
|
{% if not user.is_admin %}
|
2018-09-19 17:13:07 +00:00
|
|
|
<form class="inline" method="post" href="/admin/users/{{ user.id }}/ban">
|
|
|
|
<input type="submit" value="{{ 'Ban' | _ }}">
|
|
|
|
</form>
|
2018-09-09 10:25:55 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{{ macros::paginate(page=page, total=n_pages) }}
|
|
|
|
{% endblock content %}
|