moviewyrm/bookwyrm/templates/settings/federation.html

44 lines
1.5 KiB
HTML
Raw Normal View History

2021-09-08 21:05:08 +00:00
{% extends 'settings/layout.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
2021-06-01 21:28:53 +00:00
{% block title %}{% trans "Federated Instances" %}{% endblock %}
2021-06-01 21:28:53 +00:00
{% block header %}{% trans "Federated Instances" %}{% endblock %}
2021-04-07 18:52:13 +00:00
{% block edit-button %}
<a href="{% url 'settings-import-blocklist' %}">
2021-06-01 21:28:53 +00:00
<span class="icon icon-plus" title="{% trans 'Add instance' %}" aria-hidden="True"></span>
<span class="is-hidden-mobile">{% trans "Add instance" %}</span>
2021-04-07 20:06:29 +00:00
</a>
{% endblock %}
2021-04-07 18:52:13 +00:00
{% block panel %}
<table class="table is-striped">
<tr>
2021-03-28 20:36:05 +00:00
{% url 'settings-federation' as url %}
<th>
2021-06-01 21:28:53 +00:00
{% trans "Instance name" as text %}
2021-03-28 20:36:05 +00:00
{% include 'snippets/table-sort-header.html' with field="server_name" sort=sort text=text %}
</th>
<th>
{% trans "Date federated" as text %}
{% 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-02-28 02:48:10 +00:00
<th>{% trans "Status" %}</th>
</tr>
{% for server in servers %}
<tr>
2021-03-28 19:34:55 +00:00
<td><a href="{% url 'settings-federated-server' server.id %}">{{ server.server_name }}</a></td>
2021-03-28 20:36:05 +00:00
<td>{{ server.created_date }}</td>
<td>{{ server.application_type }} ({{ server.application_version }})</td>
<td>{{ server.status }}</td>
</tr>
{% endfor %}
</table>
2021-03-28 20:08:24 +00:00
{% include 'snippets/pagination.html' with page=servers path=request.path %}
{% endblock %}