.is-active type media

This commit is contained in:
2025-05-28 23:42:11 +02:00
parent 3be94f76df
commit ca49778787
4 changed files with 99 additions and 8 deletions
@@ -24,10 +24,10 @@
<button class="button-publications-rapports" type="button" style=""><a href="https://stage.eql.figli.io/ressources?field_type_de_media_target_id=696&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Publications/rapports</a></button>
</div> #}
<div class="buttons-filtres-ressources">
<div class="buttons-filtres-ressources">
{% for item in media_links %}
<button class="button-{{ item.slug }}" type="button">
<button class="button-{{ item.slug }}{% if item.active %} is-active{% endif %}" type="button">
<a href="{{ path('<front>') ~ 'ressources?field_type_de_media_target_id=' ~ item.tid ~ '&field_type_de_ressource_target_id=All&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine=' }}">
{{ item.label }}
</a>