diff options
| author | Dennis Fink | 2026-11-19 18:15:34 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-19 18:15:34 +0100 |
| commit | 8ec35babe87ff8139ec23cc10b858b7481f132db (patch) | |
| tree | b1e2b2507abba25b570a32e7274b6c0158eac653 /webmentions_ssg/templates | |
| parent | 45d3d3fde75173dfbf27e08aae8501842a9511dd (diff) | |
| download | webmentions-ssg-8ec35babe87ff8139ec23cc10b858b7481f132db.tar.gz webmentions-ssg-8ec35babe87ff8139ec23cc10b858b7481f132db.zip | |
refactor(sender)!: align sent Webmention terminology
Rename source-list forms, views, helpers, and tests around the Sent
Webmentions UI while keeping source documents as the grouping model.
BREAKING CHANGE: authenticated outgoing routes move from `/sources` to
`/sent`, with corresponding blueprint endpoint and Python module
renames.
Diffstat (limited to 'webmentions_ssg/templates')
| -rw-r--r-- | webmentions_ssg/templates/base.html | 4 | ||||
| -rw-r--r-- | webmentions_ssg/templates/dashboard.html | 2 | ||||
| -rw-r--r-- | webmentions_ssg/templates/sent.html | 14 | ||||
| -rw-r--r-- | webmentions_ssg/templates/sent_source.html | 4 |
4 files changed, 12 insertions, 12 deletions
diff --git a/webmentions_ssg/templates/base.html b/webmentions_ssg/templates/base.html index 17c06d2..e21c663 100644 --- a/webmentions_ssg/templates/base.html +++ b/webmentions_ssg/templates/base.html @@ -49,8 +49,8 @@ SPDX-License-Identifier: BSD-3-Clause href='{{ url_for("webmentions.received_list") }}'>Received</a> <a class="nav-link{% if request.endpoint and request.endpoint.startswith('webmentions.moderation') %} active{% endif %}" href="{{ url_for('webmentions.moderation') }}">Moderation</a> - <a class="nav-link{% if request.endpoint == 'webmentions.source_list' %} active{% endif %}" - href='{{ url_for("webmentions.source_list") }}'>Sent</a> + <a class="nav-link{% if request.endpoint in ('webmentions.sent_list', 'webmentions.sent_source_detail') %} active{% endif %}" + href='{{ url_for("webmentions.sent_list") }}'>Sent</a> <a class="nav-link{% if request.endpoint == 'webmentions.user_page' %} active{% endif %}" href="{{ url_for('webmentions.user_page') }}">User</a> <form action="{{ url_for('webmentions.logout') }}" diff --git a/webmentions_ssg/templates/dashboard.html b/webmentions_ssg/templates/dashboard.html index b020d46..4fa1e90 100644 --- a/webmentions_ssg/templates/dashboard.html +++ b/webmentions_ssg/templates/dashboard.html @@ -46,7 +46,7 @@ SPDX-License-Identifier: BSD-3-Clause <div class="card-body"> <div class="d-flex justify-content-between align-items-center mb-3"> <h2 class="h4 mb-0" id="sent-summary">Outgoing</h2> - <a href="{{ url_for('webmentions.source_list') }}">View sources</a> + <a href="{{ url_for('webmentions.sent_list') }}">View sent Webmentions</a> </div> <p class="display-6 mb-3">{{ sent_total }} <span class="fs-6 text-body-secondary">total</span></p> <div class="row row-cols-2 g-3"> diff --git a/webmentions_ssg/templates/sent.html b/webmentions_ssg/templates/sent.html index 46296b8..9db0156 100644 --- a/webmentions_ssg/templates/sent.html +++ b/webmentions_ssg/templates/sent.html @@ -22,9 +22,9 @@ SPDX-License-Identifier: BSD-3-Clause {% block content %} <div class="d-flex justify-content-between align-items-center mb-3"> - <h1 class="mb-0">Sources</h1> + <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 }} sources</span> + <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" @@ -36,7 +36,7 @@ SPDX-License-Identifier: BSD-3-Clause data-confirm-class="btn-primary">Rescan</button> </div> </div> - <form action="{{ url_for('webmentions.source_list') }}" + <form action="{{ url_for('webmentions.sent_list') }}" method="get" class="row g-2 align-items-end mb-4" role="search"> @@ -64,7 +64,7 @@ SPDX-License-Identifier: BSD-3-Clause </div> <div class="col-auto d-flex gap-2 ms-auto"> <button type="submit" class="btn btn-primary">Filter</button> - <a href="{{ url_for('webmentions.source_list') }}" + <a href="{{ url_for('webmentions.sent_list') }}" class="btn btn-outline-secondary">Clear</a> </div> </form> @@ -99,7 +99,7 @@ SPDX-License-Identifier: BSD-3-Clause <span class="badge {{ badge_class }}">{{ status_text }}</span> </td> <td class="text-break"> - <a href="{{ url_for('webmentions.source_detail', source_uuid=source.uuid, source_page=sources.page, **filters) }}">{{ source.path }}</a> + <a href="{{ url_for('webmentions.sent_source_detail', source_uuid=source.uuid, source_page=sources.page, **filters) }}">{{ source.path }}</a> </td> <td class="text-break d-none d-md-table-cell"> <a href="{{ source.url }}">{{ source.url }}</a> @@ -142,9 +142,9 @@ SPDX-License-Identifier: BSD-3-Clause {% endif %} {% else %} {% if filters %} - <p class="text-body-secondary">No sources match these filters.</p> + <p class="text-body-secondary">No source documents match these filters.</p> {% else %} - <p class="text-body-secondary">No Webmention sources have been discovered yet.</p> + <p class="text-body-secondary">No source documents with outgoing Webmentions have been discovered yet.</p> {% endif %} {% endif %} {% include "includes/confirmation_modal.html" %} diff --git a/webmentions_ssg/templates/sent_source.html b/webmentions_ssg/templates/sent_source.html index 04f9d07..a24bde3 100644 --- a/webmentions_ssg/templates/sent_source.html +++ b/webmentions_ssg/templates/sent_source.html @@ -26,10 +26,10 @@ SPDX-License-Identifier: BSD-3-Clause {% block content %} <div class="mb-3"> - <a href="{{ url_for('webmentions.source_list', page=source_page, **filters) }}">← Back to sources</a> + <a href="{{ url_for('webmentions.sent_list', page=source_page, **filters) }}">← Back to Sent Webmentions</a> </div> <div class="d-flex justify-content-between align-items-start mb-3"> - <h1 class="mb-0">Source Details</h1> + <h1 class="mb-0">Sent Webmention Source</h1> </div> <div class="d-flex justify-content-between align-items-start mb-3"> <dl class="row"> |
