summaryrefslogtreecommitdiffstats
path: root/templates/admin/federation.html
blob: 98ee09dd26cf54f489ba50a31ad6e4a912ef2d1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{% extends "settings/base.html" %}

{% 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>
    <section class="icon-menu">
        {% for domain in page_obj %}
            <a class="option" href="{{ domain.urls.edit_federation }}">
                <i class="fa-solid fa-globe"></i>
                <span class="handle">
                    {{ domain.domain }}
                    <small>
                        {{ domain.num_users }} remote identit{{ domain.num_users|pluralize:"y,ies" }}
                    </small>
                </span>
                {% if domain.blocked %}
                    <span class="pill bad">Blocked</span>
                {% endif %}
            </a>
        {% empty %}
            <p class="option empty">There are no federation links yet.</p>
        {% endfor %}
        <div class="load-more">
            {% if page_obj.has_previous %}
                <a class="button" href=".?page={{ page_obj.previous_page_number }}">Previous Page</a>
            {% endif %}
            {% if page_obj.has_next %}
                <a class="button" href=".?page={{ page_obj.next_page_number }}">Next Page</a>
            {% endif %}
        </div>
    </section>
{% endblock %}