Consistent display of price ranges

This commit is contained in:
Raphael Michel
2019-07-24 15:12:46 +02:00
parent fe6e65ccb0
commit d97a0b1941
2 changed files with 9 additions and 2 deletions

View File

@@ -50,7 +50,11 @@
</div>
</div>
<div class="col-md-2 col-xs-6 price">
{% if item.min_price != item.max_price or item.free_price %}
{% if item.free_price %}
{% blocktrans trimmed with price=item.min_price|money:event.currency %}
from {{ price }}
{% endblocktrans %}
{% elif item.min_price != item.max_price %}
{{ item.min_price|money:event.currency }} {{ item.max_price|money:event.currency }}
{% elif not item.min_price and not item.max_price %}
{% trans "FREE" context "price" %}