templates/extra_pages/articles.html.twig line 1
{% extends "base.html.twig" %}
{% block title %}
{{ parent() }} - All
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{% endblock %}
{% block javascript %}
{{ parent() }}
{% endblock %}
{% block body %}
{{ parent() }}
<div class="container">
<h1 class="title-page">
{{ 'Figures-clés des acquisitions'|trans }}
</h1>
<div style="margin: 22px 0 25px; ">{{intro | raw}}</div>
{% set nrofcolumns = 4 %}
{% for article in articles %}
{% if (loop.index0!=0 and loop.index0 is divisible by(nrofcolumns) ) %}
{% endif %}
{% if loop.index0==0 or loop.index0 is divisible by(nrofcolumns) %}
<div class="row" style="gap: 8px;">
{% endif %}
<div class="col-sm" style=" border: 1px solid #8c8c8c; border-radius: 8px; padding: 5px; margin-bottom: 8px;justify-content:center;display: flex; text-align:center;">
<a href="{{ path('article', { 'id': article.id }) }}" style="text-decoration: none; border-bottom: none">
<img src="{{ app.request.baseUrl }}/images/articles/thumbnails/{{article.picture}}" alt="{{article.title}}"/>
<div style="margin: 8px 0 4px">
{{article.title | replace({"(":"<br />" ~ "(" })|raw}}
</div>
</a>
</div>
{% if (loop.index0!=0 and loop.index is divisible by(nrofcolumns) ) %}
</div>
{% endif %}
{% endfor %}
{% if (articles|length) > 0 %}
{% set end_index = nrofcolumns-((articles|length)%nrofcolumns) %}
{% for i in 1..end_index %}
<div class="col-sm"></div>
{% endfor %}
{% endif %}
</div>
<!--DISCLAIMER-->
{% include 'disclaimer_popup.html.twig' with {'cookie_accepted':cookie_accepted??"false" } %}
{% endblock body %}