interface: small html fixes

This commit is contained in:
Nicolò Balzarotti 2022-11-19 23:44:27 +01:00
parent 51ac9d1842
commit a2a28007f3
1 changed files with 10 additions and 5 deletions

15
dist/server.js vendored
View File

@ -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) {
<p class="menu-label">{{name}}</p>
<ul class="menu-list">
{{#subitems}}
<li><a onclick="navigate({{path}}, {{link}})"
<li><a onclick="navigate({{path}}, '{{link}}')"
class="{{#current}}is-active{{/current}}">{{name}}</a></li>
{{/subitems}}
</ul>
@ -190,10 +193,12 @@ function render_load_recipe(data) {
</div>
{{#selected_recipe}}
{{description}}
Controllers:
Controllers:<br/>
<ul>
{{#controllers}}
{{.}}
<li>{{.}}</li>
{{/controllers}}
</ul>
{{#phases}}
<br><br>
<div class="content"><h4>{{name}}</h4></div>
@ -241,7 +246,7 @@ function current_recipe(data) {
{{current_phase.text}}
<br/>
<br/>
Next Cond: {{current_phase.text}}
Next Cond: {{current_phase.nextcond}}
<br/>
On Load: {{current_phase.onload}}
<br/>