diff options
| author | Dennis Fink | 2026-08-17 20:06:22 +0200 |
|---|---|---|
| committer | Dennis Fink | 2026-08-17 20:06:22 +0200 |
| commit | d4a03623544aac0ce911d8471ff4b033bc3255e1 (patch) | |
| tree | 0d707db5a9aed7442c28e0ac0de8898aab54c090 /webmentions_ssg/templates/sent.html | |
| parent | 85a73c811a3de333138978d8d450533caa668dc5 (diff) | |
| download | webmentions-ssg-d4a03623544aac0ce911d8471ff4b033bc3255e1.tar.gz webmentions-ssg-d4a03623544aac0ce911d8471ff4b033bc3255e1.zip | |
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.
Diffstat (limited to '')
| -rw-r--r-- | webmentions_ssg/templates/sent.html | 19 |
1 files changed, 18 insertions, 1 deletions
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 %} <div class="d-flex justify-content-between align-items-center mb-3"> <h1 class="mb-0">Sources</h1> - <span class="text-body-secondary">{{ sources.total }} sources</span> + <div class="d-flex flex-column justify-content-between"> + <span class="text-body-secondary mb-1">{{ sources.total }} sources</span> + <button type="button" + class="btn btn-sm btn-primary" + data-bs-toggle="modal" + data-bs-target="#confirmation-modal" + data-action="{{ url_for("root.rescan_sent_sources") }}" + data-title="Rescan sources?" + data-message="All sources will be scanned again for changes and webmentions." + data-confirm-label="Rescan" + data-confirm-class="btn-primary">Rescan</button> + </div> </div> {% if sources.items %} <div class="table-responsive"> @@ -60,7 +72,12 @@ {% if sources.pages > 1 %} <div class="mt-3">{{ render_pagination(sources) }}</div> {% endif %} + {% include "includes/confirmation_modal.html" %} {% else %} <p class="text-body-secondary">No Webmention sources have been discovered yet.</p> {% endif %} {% endblock %} +{% block scripts %} + {{ super() }} + <script src="{{ url_for('static', filename='js/confirmation-modal.js') }}"></script> +{% endblock %} |
