do not render price if unknown

This commit is contained in:
Emi Vasilek 2023-11-17 20:24:03 +01:00
parent af3454bd0d
commit 21e68445e7
3 changed files with 5 additions and 5 deletions

View file

@ -3,6 +3,6 @@
{%block body %}
<h1>Recipes</h1>
{% for recipe in recipes %}
<li>{{price(recipe)}} <a href="{{ recipe.outpath }}">{{ recipe.title }}</a></li>
<li>{% if recipe.price != None %}{{price(recipe.price)}} {%endif%}<a href="{{ recipe.outpath }}">{{ recipe.title }}</a></li>
{% endfor %}
{%endblock%}