forked from mirrors/bookwyrm
46 lines
1.6 KiB
HTML
46 lines
1.6 KiB
HTML
{% extends 'settings/admin_layout.html' %}
|
|
{% load i18n %}
|
|
{% block title %}{% trans "Federated Servers" %}{% endblock %}
|
|
|
|
{% block header %}{% trans "Federated Servers" %}{% endblock %}
|
|
|
|
{% block edit-button %}
|
|
{% trans "Add server" as button_text %}
|
|
{% include 'snippets/toggle/open_button.html' with controls_text="add-server" icon="plus" text=button_text focus="add-server-header" %}
|
|
{% endblock%}
|
|
|
|
{% block panel %}
|
|
|
|
<div class="block">
|
|
{% include 'settings/add_server_form.html' with controls_text="add-server" %}
|
|
</div>
|
|
|
|
<table class="table is-striped">
|
|
<tr>
|
|
{% url 'settings-federation' as url %}
|
|
<th>
|
|
{% trans "Server name" as text %}
|
|
{% 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>
|
|
<th>{% trans "Status" %}</th>
|
|
</tr>
|
|
{% for server in servers %}
|
|
<tr>
|
|
<td><a href="{% url 'settings-federated-server' server.id %}">{{ server.server_name }}</a></td>
|
|
<td>{{ server.created_date }}</td>
|
|
<td>{{ server.application_type }} ({{ server.application_version }})</td>
|
|
<td>{{ server.status }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% include 'snippets/pagination.html' with page=servers path=request.path %}
|
|
{% endblock %}
|