From e3e195ea07fd57288d32c842689ebed7fba636f0 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Wed, 18 Nov 2026 17:41:44 +0100 Subject: 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. --- webmentions_ssg/templates/sent_source.html | 215 +++++++++++++++-------------- 1 file changed, 109 insertions(+), 106 deletions(-) (limited to 'webmentions_ssg/templates/sent_source.html') diff --git a/webmentions_ssg/templates/sent_source.html b/webmentions_ssg/templates/sent_source.html index 2b7a377..6e34458 100644 --- a/webmentions_ssg/templates/sent_source.html +++ b/webmentions_ssg/templates/sent_source.html @@ -88,119 +88,122 @@ SPDX-License-Identifier: BSD-3-Clause {{ webmentions.total }} webmentions {% if webmentions.items %} - - - - - - - - - - - - - - {% for webmention in webmentions %} - {% set style = sent_status_presentation.get(webmention.status, {"row_class": "table-info", "badge_class": "text-bg-info", "label": "Pending" }) %} - - - - - - + + + {% endfor %} + +
TargetStatusActiveRevisionsDeliveryLast activityActions
- {{ webmention.target }} - - {{ style.label }} - {% if webmention.failure_reason is not none %} -
{{ webmention.failure_reason }}
- {% endif %} -
- {% if webmention.linked %} - Active - {% else %} - Removed - {% endif %} - -
- Desired: - {{ webmention.desired_revision }} -
-
- Processed: - {{ webmention.processed_revision - if webmention.processed_revision is not none - else "—" }} -
-
- Sent: - {{ webmention.sent_revision - if webmention.sent_revision is not none - else "—" }} -
-
- {% if webmention.webmention_endpoint is not none %} -
- Endpoint: - {{ webmention.webmention_endpoint }} +
+ + + + + + + + + + + + + + {% for webmention in webmentions %} + {% set style = sent_status_presentation.get(webmention.status, {"row_class": "table-info", "badge_class": "text-bg-info", "label": "Pending" }) %} + + + + + + + - - - - {% endfor %} - -
TargetStatusActiveRevisionsDeliveryLast activityActions
+ {{ webmention.target }} + + {{ style.label }} + {% if webmention.failure_reason is not none %} +
{{ webmention.failure_reason }}
+ {% endif %} +
+ {% if webmention.linked %} + Active + {% else %} + Removed + {% endif %} + +
+ Desired: + {{ webmention.desired_revision }} +
+
+ Processed: + {{ webmention.processed_revision + if webmention.processed_revision is not none + else "—" }} +
+
+ Sent: + {{ webmention.sent_revision + if webmention.sent_revision is not none + else "—" }}
- {% endif %} - {% if webmention.endpoint_response_status is not none %} +
+ {% if webmention.webmention_endpoint is not none %} + + {% endif %} + {% if webmention.endpoint_response_status is not none %} +
+ HTTP: + {{ webmention.endpoint_response_status }} +
+ {% endif %} + {% if webmention.status_url is not none %} +
+ Status: + {% if webmention.status_url | is_http_url %} + {{ webmention.status_url }} + {% else %} + {{ webmention.status_url }} + {% endif %} +
+ {% endif %} +
- HTTP: - {{ webmention.endpoint_response_status }} + Attempted: +
+ {% if webmention.last_attempted_at is not none %} + + {% else %} + — + {% endif %}
- {% endif %} - {% if webmention.status_url is not none %}
- Status: - {% if webmention.status_url | is_http_url %} - {{ webmention.status_url }} + Sent: +
+ {% if webmention.last_sent_at is not none %} + {% else %} - {{ webmention.status_url }} + — {% endif %}
- {% endif %} -
-
- Attempted: -
- {% if webmention.last_attempted_at is not none %} - - {% else %} - — - {% endif %} -
-
- Sent: -
- {% if webmention.last_sent_at is not none %} - - {% else %} - — - {% endif %} -
-
- -
+
+ +
+ {% if webmentions.pages > 1 %}
{{ render_pagination(webmentions) }}
{% endif %} -- cgit v1.3.1