{% extends 'layouts/common/default.html.twig' %}{% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'sim', section: 'sim' } %}{% set page_title = 'news.title'|trans %}{% block content %}<h1 class="is-Page-H1">{{ 'nav.news'|trans }}</h1>{% if firstPost is defined and firstPost is not empty%}<div class="is-Banner"><div class="is-Banner-Wrapper{% if firstPost.image is not empty and firstPost.image != ' ' %} is-Banner-Wrapper_WithImage{% endif %}"><a href="{{ path('news.get', {'id': firstPost.id}) }}" class="is-Banner-Wrapper-Link">{% if firstPost.image is not empty and firstPost.image != ' ' %}<img class="is-Banner-Image" src="{{ firstPost.image }}" alt="">{% endif %}<div class="is-Banner-Content"><h2 class="is-Banner-H2">{{ firstPost.title }}</h2><p class="is-Banner-Text">{{ firstPost.content | u.truncate(250) | raw }}</p></div></a></div></div>{% endif %}<div class="is-row is-PostList is-Equalizer" is-data-equalizer-id="news-items">{% for post in posts %}<article class="is-Post is-col-xs-12 is-col-sm-12 is-col-md-4 is-col-lg-3"><a href="{{ path('news.get', {'id': post.id}) }}" class="is-Post-Link"><div class="is-Post-Image-Wrapper"><img class="is-Post-Image" src="{{ (post.image is empty or post.image|trim == '') ? asset('img/sim/img_default.png') : post.image }}" alt=""></div><div class="is-Post-Content" is-data-equalizer-watch="news-items"><header><h3 class="is-Post-Title is-Post-Title_Blue">{{ post.title }}</h3></header><p class="is-Post-Summary">{{ post.content|u.truncate(90)|raw }}</p><footer class="is-Post-Footer"><span class="is-Post-Date is-Post-Date_Blue">{{ post.time_diff }}</span></footer></div></a></article>{% endfor %}</div>{% endblock %}