takahe/templates/admin/federation.html

47 lines
1.7 KiB
HTML
Raw Normal View History

{% extends "admin/base_main.html" %}
{% load activity_tags %}
2022-11-25 16:52:43 -08: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>
<table class="items">
{% for domain in page_obj %}
<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>
<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 }}
<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 %}
<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 %}
</table>
{% include "admin/_pagination.html" with nouns="domain,domains" %}
2022-11-25 16:52:43 -08:00
{% endblock %}