show controllers in recipe

This commit is contained in:
Nicolò Balzarotti 2022-11-19 20:37:13 +01:00
parent 8631c8c111
commit c144873f7f
2 changed files with 5 additions and 0 deletions

4
dist/server.js vendored
View File

@ -183,6 +183,10 @@ function render_load_recipe(data) {
</div> </div>
{{#selected_recipe}} {{#selected_recipe}}
{{description}} {{description}}
Controllers:
{{#controllers}}
{{.}}
{{/controllers}}
{{#phases}} {{#phases}}
<br><br> <br><br>
<div class="content"><h4>{{name}}</h4></div> <div class="content"><h4>{{name}}</h4></div>

View File

@ -209,6 +209,7 @@ class Recipe():
return { return {
'name': self.name, 'name': self.name,
'description': self.description, 'description': self.description,
'controllers': self.controllers,
'phases': [ 'phases': [
phasetodict(i, p) phasetodict(i, p)
for (i, p) in enumerate(self.phases) for (i, p) in enumerate(self.phases)