From 66ad7fefff6edc1d993f5c347430a28d63727988 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Fri, 21 Aug 2026 11:08:53 +0200 Subject: feat(sender): add manual Webmention resend action Add an authenticated action to reopen a sent Webmention revision and queue it for delivery again from the source detail view. Clear the previous attempt state while preserving historical successful-send data, and show pending Webmentions explicitly in the UI. --- webmentions_ssg/templates/sent_source.html | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'webmentions_ssg/templates/sent_source.html') diff --git a/webmentions_ssg/templates/sent_source.html b/webmentions_ssg/templates/sent_source.html index 6bb2ac5..77376b5 100644 --- a/webmentions_ssg/templates/sent_source.html +++ b/webmentions_ssg/templates/sent_source.html @@ -3,7 +3,6 @@ SPDX-FileCopyrightText: 2026 Dennis Fink SPDX-License-Identifier: BSD-3-Clause --> - {% extends "base.html" %} {% block content %}
@@ -85,11 +84,15 @@ SPDX-License-Identifier: BSD-3-Clause Status URL Last attempted at Last sent at + Actions {% for webmention in webmentions %} - {% if webmention.status.value == "sent" %} + {% if webmention.status is none %} + {% set row_class = "table-info" %} + {% set badge_class = "text-bg-info" %} + {% elif webmention.status.value == "sent" %} {% set row_class = "table-success" %} {% set badge_class = "text-bg-success" %} {% elif webmention.status.value == "unsupported" %} @@ -107,7 +110,9 @@ SPDX-License-Identifier: BSD-3-Clause {{ webmention.target }} - {% if webmention.status is not none %} + {% if webmention.status is none %} + Pending + {% else %} {{ webmention.status.value.title() }} {% endif %} @@ -171,12 +176,28 @@ SPDX-License-Identifier: BSD-3-Clause — {% endif %} + + + {% endfor %}
+ {% include "includes/confirmation_modal.html" %} {% else %}

No Webmentions have been discovered for this source.

{% endif %} {% endblock %} +{% block scripts %} + {{ super() }} + +{% endblock %} -- cgit v1.3.1