Display a promotion as a badge next to a product name

This commit is contained in:
2026-02-01 22:19:53 +01:00
parent 5a3918c228
commit cfb70a365d
4 changed files with 10 additions and 1 deletions

View File

@@ -49,6 +49,7 @@
<span class="badge text-bg-light"><a
href="{{ path('app_search', {'search': product.subTitle}) }}"
class="link-underline link-underline-opacity-0 link-dark">{{ product.subTitle }}</a></span>
{% if product.promotions is not null and product.promotions.hasPromotion %}<span class="badge bg-info">PROMO: {{ product.promotions.tag }}</span>{% endif %}
</td>
<td class="align-middle">
<nav aria-label="breadcrumb" style="--bs-breadcrumb-divider: '>';">