aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/templates
diff options
context:
space:
mode:
authorDennis Fink2026-10-24 20:05:23 +0200
committerDennis Fink2026-10-24 20:05:23 +0200
commitae25061b14f8ea713ec7695848421edf84e4f0fc (patch)
treea4edf401a35a7251766711e29f7a5c5968c5170f /webmentions_ssg/templates
parentc1270697d3846b1be445d19bd6490e24f8e1d504 (diff)
downloadwebmentions-ssg-ae25061b14f8ea713ec7695848421edf84e4f0fc.tar.gz
webmentions-ssg-ae25061b14f8ea713ec7695848421edf84e4f0fc.zip
style(receiver): use badges for received statuses
Display received Webmention statuses with Bootstrap badges matching their row state for clearer visual consistency with the sent Webmention views.
Diffstat (limited to 'webmentions_ssg/templates')
-rw-r--r--webmentions_ssg/templates/received.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/webmentions_ssg/templates/received.html b/webmentions_ssg/templates/received.html
index 2feef1e..e4064b5 100644
--- a/webmentions_ssg/templates/received.html
+++ b/webmentions_ssg/templates/received.html
@@ -27,20 +27,24 @@ SPDX-License-Identifier: BSD-3-Clause
{% for webmention in webmentions %}
{% if webmention.status == "received" %}
{% set row_class = "table-info" %}
+ {% set badge_class = "text-bg-info" %}
{% set display_status = "Pending" %}
{% elif webmention.status == "verifying" %}
{% set row_class = "table-warning" %}
+ {% set badge_class = "text-bg-warning" %}
{% set display_status = "Verifying" %}
{% elif webmention.status == "verified" %}
{% set row_class = "table-success" %}
+ {% set badge_class = "text-bg-success" %}
{% set display_status = "Verified" %}
{% else %}
{% set row_class = "table-danger" %}
+ {% set badge_class = "text-bg-danger" %}
{% set display_status = "Declined" %}
{% endif %}
<tr class="{{ row_class }}">
<td>
- <strong>{{ display_status }}</strong>
+ <span class="badge {{ badge_class }}">{{ display_status }}</span>
</td>
<td class="text-break">
<a href="{{ webmention.source }}">{{ webmention.source }}</a>