moviewyrm/bookwyrm/templates/user_admin/user_admin.html

62 lines
2.2 KiB
HTML
Raw Normal View History

2021-09-08 21:32:11 +00:00
{% extends 'settings/layout.html' %}
2021-03-28 21:20:49 +00:00
{% load i18n %}
{% block title %}{% trans "Users" %}{% endblock %}
2021-03-28 21:27:56 +00:00
{% block header %}
{% if server %}
2021-06-01 21:28:53 +00:00
{% blocktrans with instance_name=server.server_name %}Users: <small>{{ instance_name }}</small>{% endblocktrans %}
2021-03-28 21:27:56 +00:00
<a href="{% url 'settings-users' %}" class="help has-text-weight-normal">Clear filters</a>
{% else %}
{% trans "Users" %}
{% endif %}
{% endblock %}
2021-03-28 21:20:49 +00:00
{% block panel %}
{% include 'user_admin/user_admin_filters.html' %}
2021-03-28 21:20:49 +00:00
<table class="table is-striped">
<tr>
{% url 'settings-users' as url %}
<th>
{% trans "Username" as text %}
{% include 'snippets/table-sort-header.html' with field="username" sort=sort text=text %}
</th>
<th>
{% trans "Date Added" as text %}
{% include 'snippets/table-sort-header.html' with field="created_date" sort=sort text=text %}
</th>
<th>
{% trans "Last Active" as text %}
{% include 'snippets/table-sort-header.html' with field="last_active_date" sort=sort text=text %}
</th>
<th>
{% trans "Status" as text %}
{% include 'snippets/table-sort-header.html' with field="is_active" sort=sort text=text %}
</th>
<th>
2021-06-01 21:28:53 +00:00
{% trans "Remote instance" as text %}
2021-03-28 21:20:49 +00:00
{% include 'snippets/table-sort-header.html' with field="federated_server__server_name" sort=sort text=text %}
</th>
</tr>
{% for user in users %}
<tr>
2021-04-19 22:40:51 +00:00
<td><a href="{% url 'settings-user' user.id %}">{{ user.username }}</a></td>
2021-03-28 21:20:49 +00:00
<td>{{ user.created_date }}</td>
<td>{{ user.last_active_date }}</td>
<td>{% if user.is_active %}{% trans "Active" %}{% else %}{% trans "Inactive" %}{% endif %}</td>
<td>
{% if user.federated_server %}
<a href="{% url 'settings-federated-server' user.federated_server.id %}">{{ user.federated_server.server_name }}</a>
{% elif not user.local %}
<em>{% trans "Not set" %}</em>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
{% include 'snippets/pagination.html' with page=users path=request.path %}
{% endblock %}