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 %}