aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/templates/received.html
diff options
context:
space:
mode:
authorDennis Fink2026-08-21 13:14:25 +0200
committerDennis Fink2026-08-21 13:14:25 +0200
commit136177100f3f6eb34400928bddcaf88b9487f378 (patch)
treeea2aca75564369de211f10ce9ab9a3d6cba9d4d9 /webmentions_ssg/templates/received.html
parent75d22f618b22de6d26ed66bd9a15bf7a66e97af9 (diff)
downloadwebmentions-ssg-136177100f3f6eb34400928bddcaf88b9487f378.tar.gz
webmentions-ssg-136177100f3f6eb34400928bddcaf88b9487f378.zip
style(core): remove responsive table wrappers
Diffstat (limited to '')
-rw-r--r--webmentions_ssg/templates/received.html144
1 files changed, 71 insertions, 73 deletions
diff --git a/webmentions_ssg/templates/received.html b/webmentions_ssg/templates/received.html
index 7cfdce8..2feef1e 100644
--- a/webmentions_ssg/templates/received.html
+++ b/webmentions_ssg/templates/received.html
@@ -11,80 +11,78 @@ SPDX-License-Identifier: BSD-3-Clause
<span class="text-body-secondary">{{ webmentions.total }} total</span>
</div>
{% if webmentions.items %}
- <div class="table-responsive">
- <table class="table table-bordered table-striped table-hover align-middle">
- <thead>
- <tr>
- <th scope="col">Status</th>
- <th scope="col">Source</th>
- <th scope="col">Target</th>
- <th scope="col">Received</th>
- <th scope="col">Updated</th>
- <th scope="col">Reason</th>
- <th scope="col">Actions</th>
+ <table class="table table-bordered table-striped table-hover align-middle">
+ <thead>
+ <tr>
+ <th scope="col">Status</th>
+ <th scope="col">Source</th>
+ <th scope="col">Target</th>
+ <th scope="col">Received</th>
+ <th scope="col">Updated</th>
+ <th scope="col">Reason</th>
+ <th scope="col">Actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for webmention in webmentions %}
+ {% if webmention.status == "received" %}
+ {% set row_class = "table-info" %}
+ {% set display_status = "Pending" %}
+ {% elif webmention.status == "verifying" %}
+ {% set row_class = "table-warning" %}
+ {% set display_status = "Verifying" %}
+ {% elif webmention.status == "verified" %}
+ {% set row_class = "table-success" %}
+ {% set display_status = "Verified" %}
+ {% else %}
+ {% set row_class = "table-danger" %}
+ {% set display_status = "Declined" %}
+ {% endif %}
+ <tr class="{{ row_class }}">
+ <td>
+ <strong>{{ display_status }}</strong>
+ </td>
+ <td class="text-break">
+ <a href="{{ webmention.source }}">{{ webmention.source }}</a>
+ </td>
+ <td class="text-break">
+ <a href="{{ webmention.target }}">{{ webmention.target }}</a>
+ </td>
+ <td class="text-nowrap">
+ <time datetime="{{ webmention.created_at.isoformat() }}">
+ {{ webmention.created_at.strftime("%Y-%m-%d %H:%M:%S") }}
+ </time>
+ </td>
+ <td class="text-nowrap">
+ <time datetime="{{ webmention.updated_at.isoformat() }}">
+ {{ webmention.updated_at.strftime("%Y-%m-%d %H:%M:%S") }}
+ </time>
+ </td>
+ <td>{{ webmention.failure_reason or "—" }}</td>
+ <td class="text-nowrap">
+ <button type="button"
+ 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-title="Reverify webmention?"
+ data-message="The webmention will be fetched and verified again."
+ data-confirm-label="Reverify"
+ data-confirm-class="btn-primary">Reverify</button>
+ <button type="button"
+ 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-title="Delete webmention?"
+ data-message="This permanently deletes the webmention and cannot be undone."
+ data-confirm-label="Delete"
+ data-confirm-class="btn-danger">Delete</button>
+ </td>
</tr>
- </thead>
- <tbody>
- {% for webmention in webmentions %}
- {% if webmention.status == "received" %}
- {% set row_class = "table-info" %}
- {% set display_status = "Pending" %}
- {% elif webmention.status == "verifying" %}
- {% set row_class = "table-warning" %}
- {% set display_status = "Verifying" %}
- {% elif webmention.status == "verified" %}
- {% set row_class = "table-success" %}
- {% set display_status = "Verified" %}
- {% else %}
- {% set row_class = "table-danger" %}
- {% set display_status = "Declined" %}
- {% endif %}
- <tr class="{{ row_class }}">
- <td>
- <strong>{{ display_status }}</strong>
- </td>
- <td class="text-break">
- <a href="{{ webmention.source }}">{{ webmention.source }}</a>
- </td>
- <td class="text-break">
- <a href="{{ webmention.target }}">{{ webmention.target }}</a>
- </td>
- <td class="text-nowrap">
- <time datetime="{{ webmention.created_at.isoformat() }}">
- {{ webmention.created_at.strftime("%Y-%m-%d %H:%M:%S") }}
- </time>
- </td>
- <td class="text-nowrap">
- <time datetime="{{ webmention.updated_at.isoformat() }}">
- {{ webmention.updated_at.strftime("%Y-%m-%d %H:%M:%S") }}
- </time>
- </td>
- <td>{{ webmention.failure_reason or "—" }}</td>
- <td class="text-nowrap">
- <button type="button"
- 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-title="Reverify webmention?"
- data-message="The webmention will be fetched and verified again."
- data-confirm-label="Reverify"
- data-confirm-class="btn-primary">Reverify</button>
- <button type="button"
- 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-title="Delete webmention?"
- data-message="This permanently deletes the webmention and cannot be undone."
- data-confirm-label="Delete"
- data-confirm-class="btn-danger">Delete</button>
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- </div>
+ {% endfor %}
+ </tbody>
+ </table>
{% if webmentions.pages > 1 %}
<div class="mt-3">{{ render_pagination(webmentions) }}</div>
{% endif %}