takahe/templates/admin/federation.html

57 lines
2.1 KiB
HTML
Raw Normal View History

2022-11-26 00:52:43 +00:00
{% extends "settings/base.html" %}
{% load activity_tags %}
2022-11-26 00:52:43 +00:00
{% block subtitle %}Federation{% endblock %}
{% block 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">
<a href="{{ domain.urls.edit_federation }}" class="overlay"></a>
<i class="fa-solid fa-globe"></i>
</td>
<td class="name">
<a href="{{ domain.urls.edit_federation }}" 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>
<div class="pagination">
{% if page_obj.has_previous %}
<a class="button" href=".?{% urlparams page=page_obj.previous_page_number %}">Previous Page</a>
{% endif %}
{% if page_obj.paginator.count %}
<span class="count">{{ page_obj.paginator.count }} domain{{page_obj.paginator.count|pluralize }}</span>
{% endif %}
{% if page_obj.has_next %}
<a class="button" href=".?{% urlparams page=page_obj.next_page_number %}">Next Page</a>
{% endif %}
</div>
2022-11-26 00:52:43 +00:00
{% endblock %}