From b808c9fa79eb09044a451120c725186ad4c18ec5 Mon Sep 17 00:00:00 2001 From: Krzysiej Date: Mon, 2 Mar 2026 20:15:57 +0100 Subject: [PATCH] Fix badges colors --- templates/product.html.twig | 2 +- templates/productList.html.twig | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/templates/product.html.twig b/templates/product.html.twig index 6444b01..1f1c0f0 100644 --- a/templates/product.html.twig +++ b/templates/product.html.twig @@ -11,7 +11,7 @@ {{ product.name }} - {{ product.subTitle }} {% if product.promotions is not null and product.promotions.hasPromotion %}PROMO: {{ product.promotions.tag }} diff --git a/templates/productList.html.twig b/templates/productList.html.twig index 0f5f595..1b23d67 100644 --- a/templates/productList.html.twig +++ b/templates/productList.html.twig @@ -48,22 +48,19 @@ class="text-decoration-none">{{ product.name }}
{% if product.stock > 0 %} - stock: {{ product.stock }} + stock: {{ product.stock }} {% else %} out of stock {% endif %} {% if product.isDiscontinued() %} - is discontinued + is discontinued {% endif %} {% if product.isNew() %} is new {% endif %} - {{ product.subTitle }} + {{ product.subTitle }} {% if product.promotions is not null and product.promotions.hasPromotion %}PROMO: {{ product.promotions.tag }}{% endif %} - {{ product.country.countryName }} + {{ product.country.countryName }}