From 498f0db67e3004d04ad9b80fa3b88fddc5d136bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 21 Sep 2022 10:19:59 +0200 Subject: [PATCH] wcs: add css classes to emails and filenames values (#69351) --- combo/apps/wcs/templates/combo/wcs/card-field-value.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/combo/apps/wcs/templates/combo/wcs/card-field-value.html b/combo/apps/wcs/templates/combo/wcs/card-field-value.html index 9530100e..65aaad6c 100644 --- a/combo/apps/wcs/templates/combo/wcs/card-field-value.html +++ b/combo/apps/wcs/templates/combo/wcs/card-field-value.html @@ -8,12 +8,12 @@ {% elif field.type == "bool" and value is not None %} {{ value|yesno }} {% elif field.type == "email" and value is not None %} - {{ value }} + {{ value }} {% elif field.type == 'file' and value %} {% if value.content_type|startswith:"image/" %} {% else %} - {{ value.filename }} + {{ value.filename }} {% endif %} {% else %} {{ value|default:""|urlize }}