badge laureat twig et css

This commit is contained in:
2025-11-28 10:22:43 +01:00
parent 3641c9feff
commit 1e02cc5587
6 changed files with 155 additions and 54 deletions

View File

@@ -62,7 +62,11 @@
* @ingroup themeable
*/
#}
<article{{ attributes }}>
{# Le node est lauréat si field_laureats vaut "1" #}
{% set is_laureat = node.field_laureats is defined and node.field_laureats.value == '1' %}
<article{{ attributes.addClass(is_laureat ? 'is-laureat') }}>
{{ title_prefix }}
{% if label and not page %}