2021-09-08 14:05:08 -07:00
|
|
|
{% extends 'settings/layout.html' %}
|
2021-02-27 18:48:10 -08:00
|
|
|
{% load i18n %}
|
2021-06-01 14:28:53 -07:00
|
|
|
{% block title %}{% trans "Federated Instances" %}{% endblock %}
|
2021-02-28 10:00:36 -08:00
|
|
|
|
2021-06-01 14:28:53 -07:00
|
|
|
{% block header %}{% trans "Federated Instances" %}{% endblock %}
|
2021-01-29 16:02:59 -08:00
|
|
|
|
2021-04-07 11:52:13 -07:00
|
|
|
{% block edit-button %}
|
2021-04-12 14:23:51 -07:00
|
|
|
<a href="{% url 'settings-import-blocklist' %}">
|
2021-06-01 14:28:53 -07:00
|
|
|
<span class="icon icon-plus" title="{% trans 'Add instance' %}" aria-hidden="True"></span>
|
2021-06-14 15:55:26 -07:00
|
|
|
<span class="is-hidden-mobile">{% trans "Add instance" %}</span>
|
2021-04-07 13:06:29 -07:00
|
|
|
</a>
|
|
|
|
{% endblock %}
|
2021-04-07 11:52:13 -07:00
|
|
|
|
2021-01-29 16:02:59 -08:00
|
|
|
{% block panel %}
|
2021-09-11 14:41:52 -07:00
|
|
|
<div class="tabs">
|
|
|
|
<ul>
|
|
|
|
{% url 'settings-federation' status='federated' as url %}
|
|
|
|
<li {% if request.path in url %}class="is-active" aria-current="page"{% endif %}>
|
|
|
|
<a href="{{ url }}">{% trans "Federated" %}</a>
|
|
|
|
</li>
|
|
|
|
{% url 'settings-federation' status='blocked' as url %}
|
|
|
|
<li {% if url in request.path %}class="is-active" aria-current="page"{% endif %}>
|
|
|
|
<a href="{{ url }}">{% trans "Blocked" %}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2021-01-29 16:02:59 -08:00
|
|
|
<table class="table is-striped">
|
|
|
|
<tr>
|
2021-03-28 13:36:05 -07:00
|
|
|
{% url 'settings-federation' as url %}
|
|
|
|
<th>
|
2021-06-01 14:28:53 -07:00
|
|
|
{% trans "Instance name" as text %}
|
2021-03-28 13:36:05 -07:00
|
|
|
{% include 'snippets/table-sort-header.html' with field="server_name" sort=sort text=text %}
|
|
|
|
</th>
|
|
|
|
<th>
|
2021-09-12 10:02:15 -07:00
|
|
|
{% trans "Date added" as text %}
|
2021-03-28 13:36:05 -07:00
|
|
|
{% include 'snippets/table-sort-header.html' with field="created_date" sort=sort text=text %}
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
{% trans "Software" as text %}
|
|
|
|
{% include 'snippets/table-sort-header.html' with field="application_type" sort=sort text=text %}
|
|
|
|
</th>
|
2021-09-12 09:59:35 -07:00
|
|
|
<th>
|
|
|
|
{% trans "Users" %}
|
|
|
|
</th>
|
2021-02-27 18:48:10 -08:00
|
|
|
<th>{% trans "Status" %}</th>
|
2021-01-29 16:02:59 -08:00
|
|
|
</tr>
|
|
|
|
{% for server in servers %}
|
|
|
|
<tr>
|
2021-03-28 12:34:55 -07:00
|
|
|
<td><a href="{% url 'settings-federated-server' server.id %}">{{ server.server_name }}</a></td>
|
2021-03-28 13:36:05 -07:00
|
|
|
<td>{{ server.created_date }}</td>
|
2021-09-11 14:32:10 -07:00
|
|
|
<td>
|
|
|
|
{% if server.application_type %}
|
|
|
|
{{ server.application_type }}
|
|
|
|
{% if server.application_version %}({{ server.application_version }}){% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2021-09-12 09:59:35 -07:00
|
|
|
<td>{{ server.user_set.count }}</td>
|
2021-09-11 14:16:52 -07:00
|
|
|
<td>{{ server.get_status_display }}</td>
|
2021-01-29 16:02:59 -08:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2021-03-28 13:08:24 -07:00
|
|
|
{% include 'snippets/pagination.html' with page=servers path=request.path %}
|
2021-01-29 16:02:59 -08:00
|
|
|
{% endblock %}
|