aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/templates/sent.html
diff options
context:
space:
mode:
authorDennis Fink2026-11-18 17:41:44 +0100
committerDennis Fink2026-11-18 17:41:44 +0100
commite3e195ea07fd57288d32c842689ebed7fba636f0 (patch)
treeda4358930bfc6bd7c855a77de2898c19e7043a84 /webmentions_ssg/templates/sent.html
parent44ece87ed14c5d19bd6ceabfd023e45561b08ef3 (diff)
downloadwebmentions-ssg-e3e195ea07fd57288d32c842689ebed7fba636f0.tar.gz
webmentions-ssg-e3e195ea07fd57288d32c842689ebed7fba636f0.zip
style(core): improve mobile table layouts
Hide secondary received and sent table columns below the `md` breakpoint while keeping status, primary identifiers, details, and actions accessible. Add responsive wrappers, mobile received timestamps, and wrapping for long paths and URLs to improve small-screen readability.
Diffstat (limited to '')
-rw-r--r--webmentions_ssg/templates/sent.html98
1 files changed, 50 insertions, 48 deletions
diff --git a/webmentions_ssg/templates/sent.html b/webmentions_ssg/templates/sent.html
index 2b0fbe4..d949f01 100644
--- a/webmentions_ssg/templates/sent.html
+++ b/webmentions_ssg/templates/sent.html
@@ -24,55 +24,57 @@ SPDX-License-Identifier: BSD-3-Clause
</div>
</div>
{% if sources.items %}
- <table class="table table-bordered table-striped table-hover align-middle">
- <thead>
- <tr>
- <th scope="col">Path</th>
- <th scope="col">URL</th>
- <th scope="col">Webmentions</th>
- <th scope="col">Revision</th>
- <th scope="col">Created</th>
- <th scope="col">Last seen</th>
- <th scope="col">Status</th>
- </tr>
- </thead>
- <tbody>
- {% for source in sources %}
- {% if source.deleted_at is none %}
- {% set row_class = "table-success" %}
- {% set badge_class = "text-bg-success" %}
- {% set status_text = "Active" %}
- {% else %}
- {% set row_class = "table-danger" %}
- {% set badge_class = "text-bg-danger" %}
- {% set status_text = "Deleted" %}
- {% endif %}
- <tr class="{{ row_class }}">
- <td class="text-nowrap">
- <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>
- </td>
- <td>{{ source.sent_webmentions | length }}</td>
- <td>{{ source.revision }}</td>
- <td class="text-nowrap">
- <time datetime="{{ source.created_at.isoformat() }}">
- {{ source.created_at.strftime("%Y-%m-%d %H:%M:%S") }}
- </time>
- </td>
- <td class="text-nowrap">
- <time datetime="{{ source.last_seen_at.isoformat() }}">
- {{ source.last_seen_at.strftime("%Y-%m-%d %H:%M:%S") }}
- </time>
- </td>
- <td>
- <span class="badge {{ badge_class }}">{{ status_text }}</span>
- </td>
+ <div class="table-responsive">
+ <table class="table table-bordered table-striped table-hover align-middle">
+ <thead>
+ <tr>
+ <th scope="col">Path</th>
+ <th scope="col" class="d-none d-md-table-cell">URL</th>
+ <th scope="col">Webmentions</th>
+ <th scope="col" class="d-none d-md-table-cell">Revision</th>
+ <th scope="col" class="d-none d-md-table-cell">Created</th>
+ <th scope="col" class="d-none d-md-table-cell">Last seen</th>
+ <th scope="col">Status</th>
</tr>
- {% endfor %}
- </tbody>
- </table>
+ </thead>
+ <tbody>
+ {% for source in sources %}
+ {% if source.deleted_at is none %}
+ {% set row_class = "table-success" %}
+ {% set badge_class = "text-bg-success" %}
+ {% set status_text = "Active" %}
+ {% else %}
+ {% set row_class = "table-danger" %}
+ {% set badge_class = "text-bg-danger" %}
+ {% set status_text = "Deleted" %}
+ {% endif %}
+ <tr class="{{ row_class }}">
+ <td class="text-break">
+ <a href="{{ url_for('webmentions.source_detail', source_uuid=source.uuid) }}">{{ source.path }}</a>
+ </td>
+ <td class="text-break d-none d-md-table-cell">
+ <a href="{{ source.url }}">{{ source.url }}</a>
+ </td>
+ <td>{{ source.sent_webmentions | length }}</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.isoformat() }}">
+ {{ source.created_at.strftime("%Y-%m-%d %H:%M:%S") }}
+ </time>
+ </td>
+ <td class="text-nowrap d-none d-md-table-cell">
+ <time datetime="{{ source.last_seen_at.isoformat() }}">
+ {{ source.last_seen_at.strftime("%Y-%m-%d %H:%M:%S") }}
+ </time>
+ </td>
+ <td>
+ <span class="badge {{ badge_class }}">{{ status_text }}</span>
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
{% if sources.pages > 1 %}
<div class="mt-3">{{ render_pagination(sources) }}</div>
{% endif %}