diff options
| author | Dennis Fink | 2026-08-16 20:51:26 +0200 |
|---|---|---|
| committer | Dennis Fink | 2026-08-16 20:51:26 +0200 |
| commit | 85a73c811a3de333138978d8d450533caa668dc5 (patch) | |
| tree | 6b8b855484c14a7934922d91d4bfd7ececd099eb /webmentions_ssg/templates/sent.html | |
| parent | 58a4a8ee06bcf23c3957af5c2ea035b6797c4395 (diff) | |
| download | webmentions-ssg-85a73c811a3de333138978d8d450533caa668dc5.tar.gz webmentions-ssg-85a73c811a3de333138978d8d450533caa668dc5.zip | |
feat(sender): improve sent webmention status display
Highlight source and Webmention rows based on their current state and
use badges for clearer status and activity indicators.
Make discovered endpoints and status URLs clickable in the detail view.
Diffstat (limited to '')
| -rw-r--r-- | webmentions_ssg/templates/sent.html | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/webmentions_ssg/templates/sent.html b/webmentions_ssg/templates/sent.html index 69a91d8..4993bef 100644 --- a/webmentions_ssg/templates/sent.html +++ b/webmentions_ssg/templates/sent.html @@ -21,7 +21,16 @@ </thead> <tbody> {% for source in sources %} - <tr> + {% 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', identifier=source.uuid) }}">{{ source.path }}</a> </td> @@ -41,11 +50,7 @@ </time> </td> <td> - {% if source.deleted_at is none %} - <span class="badge text-bg-success">Active</span> - {% else %} - <span class="badge text-bg-danger">Deleted</span> - {% endif %} + <span class="badge {{ badge_class }}">{{ status_text }}</span> </td> </tr> {% endfor %} |
