badge laureat twig et css
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user