From e4a8194e6de25e8a48e2c61ce7f89a8159fd99d9 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sun, 9 Aug 2026 14:15:29 +0200 Subject: Implement received Webmention handling Add the Flask application setup, database models and migrations, authentication, and configuration for development and testing. Implement asynchronous Webmention verification with Huey, including HTML and plain-text source validation, retries, status tracking, and size limits. Add status, login, and paginated received-Webmention views together with comprehensive tests for forms, views, and receiver tasks. --- webmentions_ssg/templates/received.html | 69 +++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 webmentions_ssg/templates/received.html (limited to 'webmentions_ssg/templates/received.html') diff --git a/webmentions_ssg/templates/received.html b/webmentions_ssg/templates/received.html new file mode 100644 index 0000000..ea74557 --- /dev/null +++ b/webmentions_ssg/templates/received.html @@ -0,0 +1,69 @@ +{% extends "base.html" %} +{% from "bootstrap5/pagination.html" import render_pagination %} +{% block content %} +
+

Received Webmentions

+ {{ webmentions.total }} total +
+ {% if webmentions.items %} +
+ + + + + + + + + + + + + {% for webmention in webmentions %} + {% if webmention.status == "verified" %} + {% set row_class = "table-success" %} + {% set display_status = "Verified" %} + {% elif webmention.status in ("received", "verifying") %} + {% set row_class = "table-warning" %} + {% set display_status = "Pending" %} + {% else %} + {% set row_class = "table-danger" %} + {% set display_status = "Declined" %} + {% endif %} + + + + + + + + + {% endfor %} + +
StatusSourceTargetReceivedUpdatedReason
+ {{ display_status }} + + {{ webmention.source }} + + {{ webmention.target }} + + + + + {{ webmention.failure_reason or "—" }}
+
+ {% if webmentions.pages > 1 %} +
+ {{ render_pagination(webmentions, + align="center", + size="sm") }} +
+ {% endif %} + {% else %} +

No Webmentions have been received yet.

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