takahe/templates/admin/federation.html

50 lines
1.9 KiB
HTML
Raw Permalink Normal View History

{% extends "admin/base_main.html" %}
{% load activity_tags %}
2022-11-26 00:52:43 +00:00
{% block subtitle %}Federation{% endblock %}
{% block settings_content %}
<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>
<div class="view-options">
<a href="{% url "admin_federation_blocklist" %}?page={{ page_obj.number }}" class="button">Import Blocklist</a>
</div>
<table class="items">
{% for domain in page_obj %}
<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>
<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 }}
<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 %}
<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 %}
</table>
{% include "admin/_pagination.html" with nouns="domain,domains" %}
2022-11-26 00:52:43 +00:00
{% endblock %}