Add a clock to the bottom right so we know it's updating
Change-Id: I963214a40e6f1e2692748cd6fbe387fc2a58e22d
diff --git a/fudash/index.html b/fudash/index.html
index 45b6950..ba94dbd 100644
--- a/fudash/index.html
+++ b/fudash/index.html
@@ -9,5 +9,6 @@
<div class="target {{target.result}}">{{target.name}}</div>
</a>
{% endfor %}
+<div class="clock">{{clock}}</div>
</body>
</html>
diff --git a/fudash/main.css b/fudash/main.css
index 2569d0d..77d2b2b 100644
--- a/fudash/main.css
+++ b/fudash/main.css
@@ -51,3 +51,10 @@
);
color: #333;
}
+
+.clock {
+ color: #222;
+ font-family: sans-serif;
+ font-size: 2em;
+ text-align: right;
+}
diff --git a/fudash/main.py b/fudash/main.py
index 8039866..afcb4d1 100644
--- a/fudash/main.py
+++ b/fudash/main.py
@@ -5,6 +5,7 @@
# that can be found in the LICENSE file.
import os
+import time
from HTMLParser import HTMLParser
from google.appengine.api import urlfetch
@@ -75,7 +76,8 @@
def get(self):
template_values = {
- 'targets': []
+ 'clock': time.strftime("%H:%M UTC", time.gmtime()),
+ 'targets': [],
}
for t in TARGETS:
result = {