2023-05-03 21:42:37 -07:00
|
|
|
{% extends "admin/base_main.html" %}
|
2023-01-10 19:31:50 -08:00
|
|
|
{% load activity_tags %}
|
2022-11-25 16:52:43 -08:00
|
|
|
|
|
|
|
{% block subtitle %}Federation{% endblock %}
|
|
|
|
|
2023-05-03 21:42:37 -07:00
|
|
|
{% block settings_content %}
|
2022-12-05 18:54:47 -08: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 16:59:50 -07:00
|
|
|
<div class="view-options">
|
|
|
|
<a href="{% url "admin_federation_blocklist" %}?page={{ page_obj.number }}" class="button">Import Blocklist</a>
|
|
|
|
</div>
|
2023-01-10 19:31:50 -08:00
|
|
|
<table class="items">
|
2022-12-05 18:54:47 -08:00
|
|
|
{% for domain in page_obj %}
|
2023-01-10 19:31:50 -08:00
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
2023-06-14 10:15:29 -07:00
|
|
|
<a href="{{ domain.urls.edit_federation }}?page={{ page_obj.number }}" class="overlay"></a>
|
2023-01-10 19:31:50 -08:00
|
|
|
<i class="fa-solid fa-globe"></i>
|
|
|
|
</td>
|
|
|
|
<td class="name">
|
2023-06-14 10:15:29 -07:00
|
|
|
<a href="{{ domain.urls.edit_federation }}?page={{ page_obj.number }}" class="overlay"></a>
|
2022-11-25 16:52:43 -08:00
|
|
|
{{ domain.domain }}
|
2023-01-10 19:31:50 -08: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-25 16:52:43 -08:00
|
|
|
{% empty %}
|
2023-01-10 19:31:50 -08: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-25 16:52:43 -08:00
|
|
|
{% endfor %}
|
2023-01-10 19:31:50 -08:00
|
|
|
</table>
|
2023-01-13 14:54:21 -08:00
|
|
|
{% include "admin/_pagination.html" with nouns="domain,domains" %}
|
2022-11-25 16:52:43 -08:00
|
|
|
{% endblock %}
|