From 8fa9a6f3f69ef697a5a8eebdc639d6d5147b3ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Sun, 19 Aug 2018 13:11:35 +0300 Subject: [PATCH] Fix local time / UTC switcher (it was getting reset on auto-updates). --- static/js/details.js | 2 +- templates/front/details.html | 18 ++++++++++++++++++ templates/front/details_events.html | 17 ----------------- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/static/js/details.js b/static/js/details.js index 15ce68ae..9dd872ba 100644 --- a/static/js/details.js +++ b/static/js/details.js @@ -42,7 +42,7 @@ $(function () { if (data.events) { lastUpdated = data.updated; - $("#events").html(data.events); + $("#log-container").html(data.events); switchDateFormat(lastFormat); } } diff --git a/templates/front/details.html b/templates/front/details.html index 1ef44524..bce0507e 100644 --- a/templates/front/details.html +++ b/templates/front/details.html @@ -148,6 +148,24 @@
+

+ Log + Click on individual items for details +
+ + + +
+

+ +
+
diff --git a/templates/front/details_events.html b/templates/front/details_events.html index 99f7e0b7..6293e5ee 100644 --- a/templates/front/details_events.html +++ b/templates/front/details_events.html @@ -1,21 +1,5 @@ {% load hc_extras %} {% if events %} -

- Log - Click on individual items for details -
- - - -
-

- {% for event in events %} {% if event.n %} @@ -103,6 +87,5 @@

{% endif %} {% else %} -

Log

This check has not received any pings yet.
{% endif %} \ No newline at end of file