Plume/templates/instance/users.html.tera

31 lines
963 B
Plaintext
Raw Normal View History

2018-09-09 12:25:55 +02:00
{% extends "base" %}
{% import "macros" as macros %}
{% block title %}
Users
{% 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 18:17:12 +02:00
<img src="{{ user.avatar }}" class="avatar small padded" alt="{{ user.name }}">
2018-09-09 12:25:55 +02:00
<p class="grow">
<a href="/@/{{ user.fqn }}">{{ user.name }}</a>
<small>@{{ user.username }}</small>
</p>
{% if not user.is_admin %}
<a href="/admin/users/{{ user.id }}/ban">
Ban
</a>
{% endif %}
</div>
{% endfor %}
</div>
{{ macros::paginate(page=page, total=n_pages) }}
{% endblock content %}