templates: better handling of recipes with parts, backlink
This commit is contained in:
parent
4cc0656e88
commit
ae02e6de77
1 changed files with 5 additions and 2 deletions
|
@ -6,16 +6,19 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<a href="index.html">back</a>
|
||||||
<h1>{{recipe.title}}</h1>
|
<h1>{{recipe.title}}</h1>
|
||||||
{% for part in recipe.parts %}
|
{% for part in recipe.parts %}
|
||||||
<h2>Ingredients</h2>
|
<h2>{{part.title}}</h2>
|
||||||
|
<h3>Ingredients</h3>
|
||||||
{% for ing in part.ingredients %}
|
{% for ing in part.ingredients %}
|
||||||
<li>{{ing.amount}} {{ing.unit.name}} {{ ing.name }}</li>
|
<li>{{ing.amount}} {{ing.unit.name}} {{ ing.name }}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<h2>Steps</h2>
|
<h3>Steps</h3>
|
||||||
{% for step in part.steps %}
|
{% for step in part.steps %}
|
||||||
<li>{{ step }}</li>
|
<li>{{ step }}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
<hr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue