aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/templates/sent.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--webmentions_ssg/templates/sent.html98
1 files changed, 48 insertions, 50 deletions
diff --git a/webmentions_ssg/templates/sent.html b/webmentions_ssg/templates/sent.html
index 4ca75ce..844a243 100644
--- a/webmentions_ssg/templates/sent.html
+++ b/webmentions_ssg/templates/sent.html
@@ -22,57 +22,55 @@ SPDX-License-Identifier: BSD-3-Clause
</div>
</div>
{% if sources.items %}
- <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">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>
+ <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('root.sent_source', source_identifier=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>
</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('root.sent_source', source_identifier=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>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- </div>
+ {% endfor %}
+ </tbody>
+ </table>
{% if sources.pages > 1 %}
<div class="mt-3">{{ render_pagination(sources) }}</div>
{% endif %}