aboutsummaryrefslogtreecommitdiffstats
path: root/python/gui.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-09 15:44:06 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-09 15:44:06 +0100
commitb717160a90279c21c068d39673c6aafad66dfcae (patch)
tree01aaf768ebae270cd5f58261d777b374ee1152e6 /python/gui.py
parent75ba4f064a65ebad77d130f160b9469418e49c9f (diff)
downloaddabmod-b717160a90279c21c068d39673c6aafad66dfcae.tar.gz
dabmod-b717160a90279c21c068d39673c6aafad66dfcae.tar.bz2
dabmod-b717160a90279c21c068d39673c6aafad66dfcae.zip
GUI: Add status to home page
Diffstat (limited to 'python/gui.py')
-rwxr-xr-xpython/gui.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/gui.py b/python/gui.py
index 0090a3a..a9328ee 100755
--- a/python/gui.py
+++ b/python/gui.py
@@ -33,6 +33,7 @@ from lib import zmqrc
env = Environment(loader=FileSystemLoader('gui/templates'))
base_js = ["js/odr.js"]
+base_css = ["css/odr.css"]
class Root:
def __init__(self, dpd_port):
@@ -51,7 +52,8 @@ class Root:
@cherrypy.expose
def home(self):
tmpl = env.get_template("home.html")
- return tmpl.render(tab='home', js=base_js, is_login=False)
+ js = base_js + ["js/odr-home.js"]
+ return tmpl.render(tab='home', js=js, css=base_css, is_login=False)
@cherrypy.expose
def rcvalues(self):