From 7d93563f43141550fcaf083b24bab3e868e69f54 Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Sun, 31 Aug 2025 00:37:04 +0000 Subject: [PATCH] Update web/templates/tools/login_attempts.html --- web/templates/tools/login_attempts.html | 28 +++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/web/templates/tools/login_attempts.html b/web/templates/tools/login_attempts.html index 30161f0..45ae829 100644 --- a/web/templates/tools/login_attempts.html +++ b/web/templates/tools/login_attempts.html @@ -23,17 +23,37 @@ {{ a.timestamp|date:"Y-m-d H:i:s" }} {{ a.username }} - {{ a.ip_address|default:"—" }} + + {% if a.ip_address %} + + {{ a.ip_address }} + + {% else %} + — + {% endif %} + {% if a.success %} - Success + + Success + {% else %} - Failed + + Failed + {% endif %} {% empty %} - No login attempts in the last 7 days. + + + No login attempts in the last 7 days. + + {% endfor %}