From d4a03623544aac0ce911d8471ff4b033bc3255e1 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Mon, 17 Aug 2026 20:06:22 +0200 Subject: feat(sender): add manual source rescan action Add an authenticated action to queue a source rescan from the sent Webmentions overview. Extract the reusable confirmation modal and its JavaScript so received and sent admin actions share the same implementation. --- .../templates/includes/confirmation_modal.html | 27 ++++++++++ webmentions_ssg/templates/received.html | 57 +--------------------- webmentions_ssg/templates/sent.html | 19 +++++++- 3 files changed, 47 insertions(+), 56 deletions(-) create mode 100644 webmentions_ssg/templates/includes/confirmation_modal.html (limited to 'webmentions_ssg/templates') diff --git a/webmentions_ssg/templates/includes/confirmation_modal.html b/webmentions_ssg/templates/includes/confirmation_modal.html new file mode 100644 index 0000000..ff9bd06 --- /dev/null +++ b/webmentions_ssg/templates/includes/confirmation_modal.html @@ -0,0 +1,27 @@ + diff --git a/webmentions_ssg/templates/received.html b/webmentions_ssg/templates/received.html index a44b706..525e811 100644 --- a/webmentions_ssg/templates/received.html +++ b/webmentions_ssg/templates/received.html @@ -84,65 +84,12 @@ {% if webmentions.pages > 1 %}
{{ render_pagination(webmentions) }}
{% endif %} - + {% include "includes/confirmation_modal.html" %} {% else %}

No Webmentions have been received yet.

{% endif %} {% endblock %} {% block scripts %} {{ super() }} - + {% endblock %} diff --git a/webmentions_ssg/templates/sent.html b/webmentions_ssg/templates/sent.html index 4993bef..bc9e021 100644 --- a/webmentions_ssg/templates/sent.html +++ b/webmentions_ssg/templates/sent.html @@ -1,9 +1,21 @@ {% extends "base.html" %} +{% from "bootstrap5/form.html" import render_form %} {% from "bootstrap5/pagination.html" import render_pagination %} {% block content %}

Sources

- {{ sources.total }} sources +
+ {{ sources.total }} sources + +
{% if sources.items %}
@@ -60,7 +72,12 @@ {% if sources.pages > 1 %}
{{ render_pagination(sources) }}
{% endif %} + {% include "includes/confirmation_modal.html" %} {% else %}

No Webmention sources have been discovered yet.

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