From 4f6d9bcca6a683ecf55cd29574634af8e60c9a58 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sat, 16 May 2026 11:11:23 +0200 Subject: [PATCH] refactor(templates): use timeago filter for admin/blueprint timestamps Co-Authored-By: Claude Opus 4.7 (1M context) --- l4d2web/l4d2web/templates/admin_users.html | 4 ++-- l4d2web/l4d2web/templates/blueprints.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/l4d2web/l4d2web/templates/admin_users.html b/l4d2web/l4d2web/templates/admin_users.html index aac267f..3a66a0a 100644 --- a/l4d2web/l4d2web/templates/admin_users.html +++ b/l4d2web/l4d2web/templates/admin_users.html @@ -22,8 +22,8 @@ {{ user.username }} {{ "yes" if user.admin else "no" }} {{ "yes" if user.active else "no" }} - {{ user.created_at }} - {{ user.updated_at }} + {{ user.created_at | timeago }} + {{ user.updated_at | timeago }} {% if user.id == g.user.id %} you diff --git a/l4d2web/l4d2web/templates/blueprints.html b/l4d2web/l4d2web/templates/blueprints.html index 9ba8a97..e121413 100644 --- a/l4d2web/l4d2web/templates/blueprints.html +++ b/l4d2web/l4d2web/templates/blueprints.html @@ -14,8 +14,8 @@ {% for blueprint in blueprints %} {{ blueprint.name }} - {{ blueprint.created_at }} - {{ blueprint.updated_at }} + {{ blueprint.created_at | timeago }} + {{ blueprint.updated_at | timeago }} Create server {% else %}