diff options
| author | Dennis Fink | 2026-11-15 20:42:20 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-15 20:42:20 +0100 |
| commit | 509d93b2976e353d29441a7a7b7e78ca466dc4fd (patch) | |
| tree | 753e637aefabd4293f808addbf9c310eaf0aa552 /webmentions_ssg/templates | |
| parent | c74feda222745ab7cca8993df83d9ea5f9d07e5b (diff) | |
| download | webmentions-ssg-509d93b2976e353d29441a7a7b7e78ca466dc4fd.tar.gz webmentions-ssg-509d93b2976e353d29441a7a7b7e78ca466dc4fd.zip | |
refactor(core)!: standardize application terminology
Rename configuration keys, task helpers, forms, network utilities, and
view endpoints to make their responsibilities and domains more explicit.
Align source-management routes and templates with the new terminology
and rename the target-matching module and related task abstractions
consistently.
BREAKING CHANGE: configuration keys have been renamed and sent-source
routes move from `/sent` to `/sources`, with corresponding blueprint
endpoint changes.
Diffstat (limited to 'webmentions_ssg/templates')
| -rw-r--r-- | webmentions_ssg/templates/base.html | 15 | ||||
| -rw-r--r-- | webmentions_ssg/templates/received.html | 4 | ||||
| -rw-r--r-- | webmentions_ssg/templates/sent.html | 4 | ||||
| -rw-r--r-- | webmentions_ssg/templates/sent_source.html | 4 |
4 files changed, 15 insertions, 12 deletions
diff --git a/webmentions_ssg/templates/base.html b/webmentions_ssg/templates/base.html index 19412ed..69e5215 100644 --- a/webmentions_ssg/templates/base.html +++ b/webmentions_ssg/templates/base.html @@ -32,7 +32,8 @@ SPDX-License-Identifier: BSD-3-Clause <header> <nav class="navbar bg-primary py-1"> <div class="container-fluid px-3"> - <a class="navbar-brand fs-6 mb-0" href="{{ url_for('root.index') }}"> + <a class="navbar-brand fs-6 mb-0" + href="{{ url_for('webmentions.index') }}"> <img src="{{ url_for('static', filename='images/logo.svg') }}" width="30" height="30" @@ -42,11 +43,13 @@ SPDX-License-Identifier: BSD-3-Clause </a> {% if current_user.is_authenticated %} <div class="navbar-nav flex-row gap-3"> - <a class="nav-link{% if request.endpoint == 'root.received' %} active{% endif %}" - href='{{ url_for("root.received") }}'>Received</a> - <a class="nav-link{% if request.endpoint == 'root.sent' %} active{% endif %}" - href='{{ url_for("root.sent") }}'>Sent</a> - <form action="{{ url_for('root.logout') }}" method="post" class="m-0"> + <a class="nav-link{% if request.endpoint == 'webmentions.received_list' %} active{% endif %}" + href='{{ url_for("webmentions.received_list") }}'>Received</a> + <a class="nav-link{% if request.endpoint == 'webmentions.source_list' %} active{% endif %}" + href='{{ url_for("webmentions.source_list") }}'>Sent</a> + <form action="{{ url_for('webmentions.logout') }}" + method="post" + class="m-0"> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"> <button type="submit" class="nav-link border-0 bg-transparent">Logout</button> </form> diff --git a/webmentions_ssg/templates/received.html b/webmentions_ssg/templates/received.html index 3dbb896..f00a5f9 100644 --- a/webmentions_ssg/templates/received.html +++ b/webmentions_ssg/templates/received.html @@ -79,7 +79,7 @@ SPDX-License-Identifier: BSD-3-Clause class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#confirmation-modal" - data-action="{{ url_for('root.reverify_received_webmention', identifier=webmention.uuid, page=webmentions.page) }}" + data-action="{{ url_for('webmentions.reverify_received_webmention', webmention_uuid=webmention.uuid, page=webmentions.page) }}" data-title="Reverify webmention?" data-message="The webmention will be fetched and verified again." data-confirm-label="Reverify" @@ -88,7 +88,7 @@ SPDX-License-Identifier: BSD-3-Clause class="btn btn-sm btn-danger" data-bs-toggle="modal" data-bs-target="#confirmation-modal" - data-action="{{ url_for('root.delete_received_webmention', identifier=webmention.uuid, page=webmentions.page) }}" + data-action="{{ url_for('webmentions.delete_received_webmention', webmention_uuid=webmention.uuid, page=webmentions.page) }}" data-title="Delete webmention?" data-message="This permanently deletes the webmention and cannot be undone." data-confirm-label="Delete" diff --git a/webmentions_ssg/templates/sent.html b/webmentions_ssg/templates/sent.html index c9662b9..2b0fbe4 100644 --- a/webmentions_ssg/templates/sent.html +++ b/webmentions_ssg/templates/sent.html @@ -16,7 +16,7 @@ SPDX-License-Identifier: BSD-3-Clause class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#confirmation-modal" - data-action="{{ url_for('root.rescan_sent_sources') }}" + data-action="{{ url_for('webmentions.rescan_sources') }}" data-title="Rescan sources?" data-message="All sources will be scanned again for changes and webmentions." data-confirm-label="Rescan" @@ -49,7 +49,7 @@ SPDX-License-Identifier: BSD-3-Clause {% endif %} <tr class="{{ row_class }}"> <td class="text-nowrap"> - <a href="{{ url_for('root.sent_source', source_identifier=source.uuid) }}">{{ source.path }}</a> + <a href="{{ url_for('webmentions.source_detail', source_uuid=source.uuid) }}">{{ source.path }}</a> </td> <td class="text-break"> <a href="{{ source.url }}">{{ source.url }}</a> diff --git a/webmentions_ssg/templates/sent_source.html b/webmentions_ssg/templates/sent_source.html index 974c7b3..31d5c81 100644 --- a/webmentions_ssg/templates/sent_source.html +++ b/webmentions_ssg/templates/sent_source.html @@ -26,7 +26,7 @@ SPDX-License-Identifier: BSD-3-Clause {% block content %} <div class="mb-3"> - <a href="{{ url_for('root.sent') }}">← Back to sources</a> + <a href="{{ url_for('webmentions.source_list') }}">← Back to sources</a> </div> <div class="d-flex justify-content-between align-items-start mb-3"> <h1 class="mb-0">Source Details</h1> @@ -191,7 +191,7 @@ SPDX-License-Identifier: BSD-3-Clause class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#confirmation-modal" - data-action="{{ url_for('root.resend_sent_webmention', source_identifier=source.uuid, webmention_identifier=webmention.uuid) }}" + data-action="{{ url_for('webmentions.resend_webmention', source_uuid=source.uuid, webmention_uuid=webmention.uuid) }}" data-title="Resend Webmention?" data-message="This Webmention will be queued again for delivery to {{ webmention.target }}." data-confirm-label="Resend" |
