summaryrefslogtreecommitdiffstats
path: root/python/gui.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-23 11:00:02 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-23 11:00:02 +0100
commit201d711a1d3dfbe46d622871731005937598e790 (patch)
treee43a95ee027e1be6ca8621f9e2c78aaf932a3421 /python/gui.py
parent674228bedb325384f12602350ab36d075b5509a3 (diff)
parente0abfc3728fb56519fa2507d2468214e2a633c98 (diff)
downloaddabmod-201d711a1d3dfbe46d622871731005937598e790.tar.gz
dabmod-201d711a1d3dfbe46d622871731005937598e790.tar.bz2
dabmod-201d711a1d3dfbe46d622871731005937598e790.zip
Merge branch 'next' into lime
Diffstat (limited to 'python/gui.py')
-rwxr-xr-xpython/gui.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/gui.py b/python/gui.py
index ce7948c..a9328ee 100755
--- a/python/gui.py
+++ b/python/gui.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2018
@@ -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):