- web-if and gui now respect isshown and isblack flags

This commit is contained in:
Bernhard Stampfer
2016-02-20 19:03:31 +01:00
parent 2ad94b8753
commit 63dc812096
4 changed files with 29 additions and 20 deletions

View File

@@ -10,9 +10,15 @@
<p> {{ message }} </p>
{% endif %}
<p>
Möchtest du etwas konsumieren?
{% for product in products %}
<div><p> {{ product.id }}, <a href="/consume?prodid={{product.id}}"> {{product.name}} </a>, {{"%0.2f" % product.price}} € </p> </div>
{% endfor %}
{% if user.isblack %}
Sorry, du bist geschwärzt!
{% else %}
Möchtest du etwas konsumieren?
{% for product in products %}
{% if product.isshown %}
<div><p> {{ product.id }}, <a href="/consume?prodid={{product.id}}"> {{product.name}} </a>, {{"%0.2f" % product.price}} € </p> </div>
{% endif %}
{% endfor %}
{% endif %}
</p>
{% endblock %}