From a2a28007f3114da47150c00a62065417ebc9db5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Sat, 19 Nov 2022 23:44:27 +0100 Subject: [PATCH] interface: small html fixes --- dist/server.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/dist/server.js b/dist/server.js index e0446d7..9498915 100644 --- a/dist/server.js +++ b/dist/server.js @@ -123,7 +123,10 @@ function render_sensors(sensordata) { } function navigate(path, link) { - console.log(link); + if (link !== undefined) { + window.location.href = "./" + link + return; + } localstate.page = path; applyState(); } @@ -135,7 +138,7 @@ function render_sidebar(data) { @@ -190,10 +193,12 @@ function render_load_recipe(data) { {{#selected_recipe}} {{description}} -Controllers: +Controllers:
+ {{#phases}}

{{name}}

@@ -241,7 +246,7 @@ function current_recipe(data) { {{current_phase.text}}

-Next Cond: {{current_phase.text}} +Next Cond: {{current_phase.nextcond}}
On Load: {{current_phase.onload}}