From b2b5429bcf008db357d9d65db77ba37f7af908a8 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Wed, 18 Nov 2026 21:13:34 +0100 Subject: feat(sender): add source list filters and sorting Add status, search, date, sorting, and page-size controls to the source list with validated query parameters and stable pagination. Preserve list context across source details, rescans, resends, and pagination, and surface failed and retrying delivery counts with retry deadlines. --- webmentions_ssg/templates/sent.html | 103 ++++++++++++++++++++++++++++++------ 1 file changed, 87 insertions(+), 16 deletions(-) (limited to 'webmentions_ssg/templates/sent.html') diff --git a/webmentions_ssg/templates/sent.html b/webmentions_ssg/templates/sent.html index d2a319d..6febdb9 100644 --- a/webmentions_ssg/templates/sent.html +++ b/webmentions_ssg/templates/sent.html @@ -7,6 +7,19 @@ SPDX-License-Identifier: BSD-3-Clause {% from "bootstrap5/pagination.html" import render_pagination %} +{% macro sortable_header(label, column, responsive_class="") %} + {% set active = sort_key == column %} +
| Path | -URL | -Webmentions | -Revision | -Created | -Last seen | -Status | + {{ sortable_header('Status', 'status') }} + {{ sortable_header('Path', 'path') }} + {{ sortable_header('URL', 'url', 'd-none d-md-table-cell') }} + {{ sortable_header('Webmentions', 'webmentions') }} + {{ sortable_header('Revision', 'revision', 'd-none d-md-table-cell') }} + {{ sortable_header('Created', 'created', 'd-none d-md-table-cell') }} + {{ sortable_header('Last seen', 'last_seen', 'd-none d-md-table-cell') }}|
|---|---|---|---|---|---|---|---|
| + {{ status_text }} + | - {{ source.path }} + {{ source.path }} | {{ source.url }} | -{{ source.sent_webmentions | length }} | ++ {{ source.sent_webmentions | length }} Total + {% if statistics.sent %} + {{ statistics.sent }} sent + {% endif %} + {% if statistics.failed %} + {{ statistics.failed }} failed + {% endif %} + {% if statistics.retrying %} + {{ statistics.retrying }} awaiting retry + {% endif %} + | {{ source.revision }} | - | - {{ status_text }} - |
No Webmention sources have been discovered yet.
+ {% if filters %} +No sources match these filters.
+ {% else %} +No Webmention sources have been discovered yet.
+ {% endif %} {% endif %} + {% include "includes/confirmation_modal.html" %} {% endblock %} {% block scripts %} -- cgit v1.3.1