From f98b0e446b41325c494bd97900b7bbf730a7d67e Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Mon, 16 Nov 2026 22:59:36 +0100 Subject: feat(receiver): add bulk received Webmention actions Allow admins to select received Webmentions for bulk reverification or deletion and provide a separate action to delete all declined entries. Validate selections strictly, preserve active list filters across redirects, and reuse the shared confirmation modal with CSRF protection. --- webmentions_ssg/templates/received.html | 55 ++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) (limited to 'webmentions_ssg/templates') diff --git a/webmentions_ssg/templates/received.html b/webmentions_ssg/templates/received.html index 8cd952c..de3a9b6 100644 --- a/webmentions_ssg/templates/received.html +++ b/webmentions_ssg/templates/received.html @@ -108,10 +108,56 @@ SPDX-License-Identifier: BSD-3-Clause class="btn btn-outline-secondary">Clear +
+ {% if webmentions.items %} + 0 selected + + + {% endif %} + +
{% if webmentions.items %} + {{ sortable_header('Status', 'status') }} {{ sortable_header('Source', 'source') }} {{ sortable_header('Target', 'target') }} @@ -125,6 +171,12 @@ SPDX-License-Identifier: BSD-3-Clause {% for webmention in webmentions %} {% set style = received_status_presentation.get(webmention.status, {"row_class": "table-danger", "badge_class": "text-bg-danger", "label": "Declined"}) %} +
+ +
+ + {{ style.label }} {{ webmention.source }} @@ -170,7 +222,6 @@ SPDX-License-Identifier: BSD-3-Clause {% if webmentions.pages > 1 %}
{{ render_pagination(webmentions, args=filters) }}
{% endif %} - {% include "includes/confirmation_modal.html" %} {% else %} {% if filters %}

No Webmentions match these filters.

@@ -178,9 +229,11 @@ SPDX-License-Identifier: BSD-3-Clause

No Webmentions have been received yet.

{% endif %} {% endif %} + {% include "includes/confirmation_modal.html" %} {% endblock %} {% block scripts %} {{ super() }} + {% endblock %} -- cgit v1.3.1