aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/templates/received.html
diff options
context:
space:
mode:
Diffstat (limited to 'webmentions_ssg/templates/received.html')
-rw-r--r--webmentions_ssg/templates/received.html35
1 files changed, 21 insertions, 14 deletions
diff --git a/webmentions_ssg/templates/received.html b/webmentions_ssg/templates/received.html
index b8099aa..2edf881 100644
--- a/webmentions_ssg/templates/received.html
+++ b/webmentions_ssg/templates/received.html
@@ -34,9 +34,10 @@ SPDX-License-Identifier: BSD-3-Clause
}
} %}
-{% macro sortable_header(label, column) %}
+{% macro sortable_header(label, column, responsive_class="") %}
{% set active = sort_key == column %}
<th scope="col"
+ class="{{ responsive_class }}"
aria-sort="{{ ('ascending' if sort_order == 'asc' else 'descending') if active else 'none' }}">
<a href="{{ sort_urls[column] }}"
class="link-body-emphasis text-decoration-none">
@@ -112,11 +113,11 @@ SPDX-License-Identifier: BSD-3-Clause
aria-label="Received Webmention actions">
{% if webmentions.items %}
<span id="received-selected-count"
- class="text-body-secondary"
+ class="text-body-secondary d-none d-md-inline"
role="status"
aria-live="polite">0 selected</span>
<button type="button"
- class="btn btn-sm btn-outline-primary"
+ class="btn btn-sm btn-outline-primary d-none d-md-inline-block"
disabled
data-bs-toggle="modal"
data-bs-target="#confirmation-modal"
@@ -127,7 +128,7 @@ SPDX-License-Identifier: BSD-3-Clause
data-confirm-label="Reverify selected"
data-confirm-class="btn-primary">Reverify selected</button>
<button type="button"
- class="btn btn-sm btn-outline-warning"
+ class="btn btn-sm btn-outline-warning d-none d-md-inline-block"
disabled
data-bs-toggle="modal"
data-bs-target="#confirmation-modal"
@@ -138,7 +139,7 @@ SPDX-License-Identifier: BSD-3-Clause
data-confirm-label="Block selected domains"
data-confirm-class="btn-warning">Block selected source domains</button>
<button type="button"
- class="btn btn-sm btn-outline-danger"
+ class="btn btn-sm btn-outline-danger d-none d-md-inline-block"
disabled
data-bs-toggle="modal"
data-bs-target="#confirmation-modal"
@@ -164,7 +165,7 @@ SPDX-License-Identifier: BSD-3-Clause
<table class="table table-bordered table-striped table-hover align-middle">
<thead>
<tr>
- <th scope="col">
+ <th scope="col" class="d-none d-md-table-cell">
<input type="checkbox"
class="form-check-input"
id="received-select-all"
@@ -172,9 +173,9 @@ SPDX-License-Identifier: BSD-3-Clause
</th>
{{ sortable_header('Status', 'status') }}
{{ sortable_header('Source', 'source') }}
- {{ sortable_header('Target', 'target') }}
- {{ sortable_header('Received', 'received') }}
- {{ sortable_header('Updated', 'updated') }}
+ {{ sortable_header('Target', 'target', 'd-none d-md-table-cell') }}
+ {{ sortable_header('Received', 'received', 'd-none d-md-table-cell') }}
+ {{ sortable_header('Updated', 'updated', 'd-none d-md-table-cell') }}
<th scope="col">Details</th>
</tr>
</thead>
@@ -182,26 +183,32 @@ SPDX-License-Identifier: BSD-3-Clause
{% for webmention in webmentions %}
{% set style = received_status_presentation.get(webmention.status, {"row_class": "table-danger", "badge_class": "text-bg-danger", "label": "Declined"}) %}
<tr class="{{ style.row_class }}">
- <td>
+ <td class="d-none d-md-table-cell">
<input type="checkbox"
class="form-check-input received-select"
value="{{ webmention.uuid }}"
aria-label="Select webmention {{ webmention.uuid }}">
</td>
<td><span class="badge {{ style.badge_class }}">{{ style.label }}</span></td>
- <td>
+ <td class="text-break">
<a href="{{ webmention.source }}">{{ webmention.source }}</a>
+ <div class="small mt-1 d-md-none">
+ Received
+ <time datetime="{{ webmention.created_at.isoformat() }}">
+ {{ webmention.created_at.strftime("%Y-%m-%d %H:%M:%S") }}
+ </time>
+ </div>
</td>
- <td>
+ <td class="d-none d-md-table-cell text-break">
<a href="{{ webmention.target }}">{{ webmention.target }}</a>
</td>
- <td class="text-nowrap">
+ <td class="text-nowrap d-none d-md-table-cell">
<time datetime="{{ webmention.created_at.isoformat() }}"
title="{{ webmention.created_at.strftime('%Y-%m-%d %H:%M:%S') }} UTC">
{{ webmention.created_at.strftime("%Y-%m-%d %H:%M:%S") }}
</time>
</td>
- <td class="text-nowrap">
+ <td class="text-nowrap d-none d-md-table-cell">
<time datetime="{{ webmention.updated_at.isoformat() }}"
title="{{ webmention.updated_at.strftime('%Y-%m-%d %H:%M:%S') }} UTC">
{{ webmention.updated_at.strftime("%Y-%m-%d %H:%M:%S") }}