Dashboard and product list: Respect availability dates of products

This commit is contained in:
Raphael Michel
2017-12-04 16:24:07 +01:00
parent 1b82b64a0a
commit feba94547a
2 changed files with 11 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
<th class="iconcol"></th>
<th class="iconcol"></th>
<th class="iconcol"></th>
<th class="iconcol"></th>
<th>{% trans "Category" %}</th>
<th class="action-col-2"></th>
<th class="action-col-2"></th>
@@ -51,6 +52,12 @@
{% if not i.active %}</strike>{% endif %}
</strong>
</td>
<td>
{% if i.available_from or i.available_until %}
<span class="fa fa-clock-o fa-fw text-muted" data-toggle="tooltip" title="{% trans "Only available in a limited timeframe" %}">
</span>
{% endif %}
</td>
<td>
{% if i.admission %}
<span class="fa fa-user fa-fw text-muted" data-toggle="tooltip" title="{% trans "Admission ticket" %}"></span>