Fonctionnalité ‘Plus d'infos’ (#120)

This commit is contained in:
Gwenael-F 2022-09-28 17:00:44 +02:00 committed by GitHub
parent 78c501da98
commit 801ab42a08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,9 +37,10 @@
<tr>
<th class="product {% if product.rupture %}rupture{% endif %}"><div {% if product.description %}title="{{ product.description }}"{% endif %}>{{ product }} {% if product.rupture %}(RUPTURE !){% endif %}</div>
{% if product.description and product.description | length > 30 %}
<small title="{{ product.description }}">+ d'infos…</small>
<small class="moreinfos" tabindex="1">Plus dinfos…</small>
<small class="infos-hidden">{{ product.description }}</small>
{% else %}
<small title="{{ product.description }}">{{ product.description }}</small>
<small>{{ product.description }}</small>
{% endif %}
</th>
<td>{{ product.price | round(2) }} €</td>