twig /lesprojets .islaureat
This commit is contained in:
@@ -62,7 +62,10 @@
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
<article{{ attributes }}>
|
||||
{# On calcule une variable Twig pour savoir si le node est lauréat #}
|
||||
{% set is_laureat = node.field_laureats.value ?? 0 %}
|
||||
|
||||
<article{{ attributes.addClass(is_laureat ? 'is-laureat' : '') }}>
|
||||
|
||||
{{ title_prefix }}
|
||||
{% if label and not page %}
|
||||
|
||||
Reference in New Issue
Block a user