2023-05-04 04:42:37 +00:00
|
|
|
{% extends "admin/base_main.html" %}
|
2023-01-11 03:31:50 +00:00
|
|
|
{% load activity_tags %}
|
2022-11-26 00:52:43 +00:00
|
|
|
|
|
|
|
{% block subtitle %}Federation{% endblock %}
|
|
|
|
|
2023-05-04 04:42:37 +00:00
|
|
|
{% block settings_content %}
|
2022-12-06 02:54:47 +00:00
|
|
|
<form action="." class="search">
|
|
|
|
<input type="search" name="query" value="{{ query }}" placeholder="Search by domain">
|
|
|
|
<button><i class="fa-solid fa-search"></i></button>
|
|
|
|
</form>
|
2023-07-24 23:59:50 +00:00
|
|
|
<div class="view-options">
|
|
|
|
<a href="{% url "admin_federation_blocklist" %}?page={{ page_obj.number }}" class="button">Import Blocklist</a>
|
|
|
|
</div>
|
2023-01-11 03:31:50 +00:00
|
|
|
<table class="items">
|
2022-12-06 02:54:47 +00:00
|
|
|
{% for domain in page_obj %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
2023-06-14 17:15:29 +00:00
|
|
|
<a href="{{ domain.urls.edit_federation }}?page={{ page_obj.number }}" class="overlay"></a>
|
2023-01-11 03:31:50 +00:00
|
|
|
<i class="fa-solid fa-globe"></i>
|
|
|
|
</td>
|
|
|
|
<td class="name">
|
2023-06-14 17:15:29 +00:00
|
|
|
<a href="{{ domain.urls.edit_federation }}?page={{ page_obj.number }}" class="overlay"></a>
|
2022-11-26 00:52:43 +00:00
|
|
|
{{ domain.domain }}
|
2023-01-11 03:31:50 +00:00
|
|
|
<small>{{ domain.software }}</small>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if domain.blocked %}
|
|
|
|
<span class="bad">Blocked</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td class="stat">
|
|
|
|
{{ domain.num_users }}
|
|
|
|
<small>identit{{ domain.num_users|pluralize:"y,ies" }}</small>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-11-26 00:52:43 +00:00
|
|
|
{% empty %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<tr class="empty">
|
|
|
|
<td>
|
|
|
|
{% if query %}
|
|
|
|
There are no domains matching your query.
|
|
|
|
{% else %}
|
|
|
|
There are no federation links yet.
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-11-26 00:52:43 +00:00
|
|
|
{% endfor %}
|
2023-01-11 03:31:50 +00:00
|
|
|
</table>
|
2023-01-13 22:54:21 +00:00
|
|
|
{% include "admin/_pagination.html" with nouns="domain,domains" %}
|
2022-11-26 00:52:43 +00:00
|
|
|
{% endblock %}
|