From 8ca36fd95800907a1c7f3c9efedd0085b8f0ec9b Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 25 Nov 2022 17:52:43 -0700 Subject: Add federation admin page --- templates/admin/federation.html | 24 ++++++++++++++++++++++++ templates/admin/federation_edit.html | 19 +++++++++++++++++++ templates/settings/_menu.html | 3 +++ 3 files changed, 46 insertions(+) create mode 100644 templates/admin/federation.html create mode 100644 templates/admin/federation_edit.html (limited to 'templates') diff --git a/templates/admin/federation.html b/templates/admin/federation.html new file mode 100644 index 0000000..1a48176 --- /dev/null +++ b/templates/admin/federation.html @@ -0,0 +1,24 @@ +{% extends "settings/base.html" %} + +{% block subtitle %}Federation{% endblock %} + +{% block content %} +
+ {% for domain in domains %} + + + + {{ domain.domain }} + + {{ domain.num_users }} remote identit{{ domain.num_users|pluralize:"y,ies" }} + + + {% if domain.blocked %} + Blocked + {% endif %} + + {% empty %} +

There are no federation links yet.

+ {% endfor %} +
+{% endblock %} diff --git a/templates/admin/federation_edit.html b/templates/admin/federation_edit.html new file mode 100644 index 0000000..f96e7ae --- /dev/null +++ b/templates/admin/federation_edit.html @@ -0,0 +1,19 @@ +{% extends "settings/base.html" %} + +{% block subtitle %}{{ domain.domain }}{% endblock %} + +{% block content %} +
+ {% csrf_token %} +

{{ domain }}

+
+ Federation Controls + {% include "forms/_field.html" with field=form.blocked %} +
+
+ Back + Delete + +
+
+{% endblock %} diff --git a/templates/settings/_menu.html b/templates/settings/_menu.html index 49a5d68..531febb 100644 --- a/templates/settings/_menu.html +++ b/templates/settings/_menu.html @@ -24,6 +24,9 @@ Domains + + Federation + Users -- cgit v1.2.3