mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-23 14:00:28 +00:00
8f57aa5f37
Redoes the UI to remove timelines, promote domains, and a lot of other things to support the refactor.
46 lines
1.6 KiB
HTML
46 lines
1.6 KiB
HTML
{% extends "admin/base_main.html" %}
|
|
{% load activity_tags %}
|
|
|
|
{% 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">
|
|
<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>
|
|
{{ 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>
|
|
{% empty %}
|
|
<tr class="empty">
|
|
<td>
|
|
{% if query %}
|
|
There are no domains matching your query.
|
|
{% else %}
|
|
There are no federation links yet.
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% include "admin/_pagination.html" with nouns="domain,domains" %}
|
|
{% endblock %}
|