From 0707fb2211c0470bf677ff26f80ac56b3e0de888 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Date: Wed, 16 Jan 2019 13:26:35 +0100 Subject: [PATCH] Convert login form to Bootstrap --- manager/templates/registration/login.html | 20 +++++++++----------- static/js/devices.js | 2 +- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/manager/templates/registration/login.html b/manager/templates/registration/login.html index 325c00b..db0e8a2 100644 --- a/manager/templates/registration/login.html +++ b/manager/templates/registration/login.html @@ -25,18 +25,16 @@
{% csrf_token %} - - - - - - - - - -
{{ form.username.label_tag }}{{ form.username }}
{{ form.password.label_tag }}{{ form.password }}
+
+ {{ form.username.label_tag }} + +
+
+ {{ form.password.label_tag }} + +
- +
diff --git a/static/js/devices.js b/static/js/devices.js index a3bcf06..b1abfe0 100644 --- a/static/js/devices.js +++ b/static/js/devices.js @@ -4,7 +4,7 @@ function timeSince(obj) { interval = Math.floor(seconds / 3600); out = ""; - if (interval > 24) return "at " + last.toDateString().substr(4) + " " + last.toLocaleTimeString(); + if (interval > 24) return "at " + last.toUTCString().substr(4); if (interval > 1) out = interval + " hours "; interval = Math.floor(seconds / 60);