From 6d6d079a3a99d3d3a922a640b6925eb2adf044de Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Tue, 17 Nov 2026 17:09:59 +0100 Subject: refactor(core)!: split forms and models by feature Replace monolithic form and model modules with focused packages for receiver, moderation, source, user, and shared validation concerns. Rename source policy concepts to domain moderation, including routes, models, tables, configuration, templates, and tests. BREAKING CHANGE: form and model import paths, moderation routes, and `SOURCE_ALLOWLIST_ENABLED` have changed; use `ALLOWLIST_ENABLED` and the new feature-specific modules. --- webmentions_ssg/templates/moderation.html | 69 +++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 webmentions_ssg/templates/moderation.html (limited to 'webmentions_ssg/templates/moderation.html') diff --git a/webmentions_ssg/templates/moderation.html b/webmentions_ssg/templates/moderation.html new file mode 100644 index 0000000..e45fe3f --- /dev/null +++ b/webmentions_ssg/templates/moderation.html @@ -0,0 +1,69 @@ + +{% extends "base.html" %} + +{% block content %} +

Source domain rules

+

+ Entries match the named hostname and all of its subdomains (not similarly named domains). + Blocked domains always take precedence over allowed domains. Changes affect new + submissions and future verification attempts; existing mentions are not deleted. +

+

+ Allowlist mode is {{ "enabled" if allowlist_enabled else "disabled" }}. + Set ALLOWLIST_ENABLED = True in the server configuration to + accept only listed source domains. An empty enabled allowlist rejects all sources. +

+ {% for kind, entries in (("blocked", blocked), ("allowed", allowed)) %} +
+

{{ "Blocked" if kind == "blocked" else "Allowed" }} domains

+
+ +
+ + +
+
+ +
+
+ {% if entries %} + + + + + + + + + {% for entry in entries %} + + + + + {% endfor %} + +
DomainAction
{{ entry.domain }} +
+ + +
+
+ {% else %} +

No {{ kind }} domains.

+ {% endif %} +
+ {% endfor %} +{% endblock %} -- cgit v1.3.1