aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/templates/sent.html
diff options
context:
space:
mode:
authorDennis Fink2026-11-21 14:49:28 +0100
committerDennis Fink2026-11-21 14:49:28 +0100
commitef90dc381322122ecfb9af039cf790de92807514 (patch)
tree9b81d9726b05fbd22e738bbc29ab6ec66536c11f /webmentions_ssg/templates/sent.html
parenteb11fb64e9cad6fbda2065362189653416d98577 (diff)
downloadwebmentions-ssg-ef90dc381322122ecfb9af039cf790de92807514.tar.gz
webmentions-ssg-ef90dc381322122ecfb9af039cf790de92807514.zip
feat(sender): split source and delivery history
Add per-Webmention detail pages so delivery state, failure guidance, status URLs, and delivery history no longer crowd the source overview. Track source lifecycle events separately for discovery, revision, deletion, and restoration, and add a source-level action to resend only failed Webmentions.
Diffstat (limited to '')
-rw-r--r--webmentions_ssg/templates/sent.html37
1 files changed, 12 insertions, 25 deletions
diff --git a/webmentions_ssg/templates/sent.html b/webmentions_ssg/templates/sent.html
index 9dbbe8e..4a78fd1 100644
--- a/webmentions_ssg/templates/sent.html
+++ b/webmentions_ssg/templates/sent.html
@@ -25,15 +25,6 @@ SPDX-License-Identifier: BSD-3-Clause
<h1 class="mb-0">Sent Webmentions</h1>
<div class="d-flex flex-column justify-content-between">
<span class="text-body-secondary mb-1">{{ sources.total }} source document{{ "s" if sources.total != 1 else "" }}</span>
- <button type="button"
- class="btn btn-sm btn-primary"
- data-bs-toggle="modal"
- data-bs-target="#confirmation-modal"
- data-action="{{ url_for('webmentions.rescan_sources', page=sources.page, **filters) }}"
- 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>
<form action="{{ url_for('webmentions.sent_list') }}"
@@ -65,13 +56,22 @@ SPDX-License-Identifier: BSD-3-Clause
<div class="col-auto d-flex gap-2 ms-auto">
<button type="submit" class="btn btn-primary">Filter</button>
<a href="{{ url_for('webmentions.sent_list') }}"
- class="btn btn-outline-secondary">Clear</a>
+ class="btn btn-secondary">Clear</a>
</div>
</form>
- <div class="d-flex flex-wrap gap-2 mb-3"
+ <div class="d-flex justify-content-start flex-wrap gap-2 mb-3"
aria-label="Sent Webmention actions">
<button type="button"
- class="btn btn-sm btn-primary ms-auto"
+ class="btn btn-sm btn-primary"
+ data-bs-toggle="modal"
+ data-bs-target="#confirmation-modal"
+ data-action="{{ url_for('webmentions.rescan_sources', page=sources.page, **filters) }}"
+ 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>
+ <button type="button"
+ class="btn btn-sm btn-danger"
data-bs-toggle="modal"
data-bs-target="#confirmation-modal"
data-action="{{ url_for('webmentions.resend_all_failed_webmentions', page=sources.page if sources.page > 1 else none, **filters) }}"
@@ -87,10 +87,7 @@ SPDX-License-Identifier: BSD-3-Clause
<tr>
{{ 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') }}
<th scope="col">Details</th>
</tr>
@@ -112,9 +109,6 @@ SPDX-License-Identifier: BSD-3-Clause
<span class="badge {{ badge_class }}">{{ status_text }}</span>
</td>
<td class="text-break">{{ source.path }}</td>
- <td class="text-break d-none d-md-table-cell">
- <a href="{{ source.url }}">{{ source.url }}</a>
- </td>
<td>
<span class="badge text-bg-info">{{ counts.total }} Total</span>
{% if counts.sent %}
@@ -130,13 +124,6 @@ SPDX-License-Identifier: BSD-3-Clause
<span class="badge text-bg-warning">{{ counts.retrying }} awaiting retry</span>
{% endif %}
</td>
- <td class="d-none d-md-table-cell">{{ source.revision }}</td>
- <td class="text-nowrap d-none d-md-table-cell">
- <time datetime="{{ source.created_at | utc_isoformat }}"
- title="{{ source.created_at | utc_timestamp }}">
- {{ source.created_at | relative_time }}
- </time>
- </td>
<td class="text-nowrap d-none d-md-table-cell">
<time datetime="{{ source.last_seen_at | utc_isoformat }}"
title="{{ source.last_seen_at | utc_timestamp }}">