templates/olymp-online/gallery/items.html.twig line 1
{% extends 'layout/base.html.twig' %}
{% block body_class %}
{{ parent() }}
olympiad-page
{% endblock %}
{% block title %}
{{ title("gallery.title"|trans) }}
{% endblock %}
{% block body %}
{% include "olympiads/iofs/presentation.html.twig" %}
<div class="olympiad iofs">
<div class="container iofs__inner">
<div class="iofs__content">
<h2>{{ ("gallery.page_caption"|trans) }}</h2>
<div class="olympiad-gallery-group">
{% for gr in items %}
<a class="gallery-group" href="{{ path('olympiad_gallery_60_group',{id:gr.id}) }}"
style="background-image: url({{ vich_uploader_asset(gr.previewImage)|imagine_filter('gallery_group') }})">
<span>{{ gr.caption }}</span>
</a>
{% endfor %}
</div>
{# <hr>
<h1>Так было раньше</h1>
<div class="olympiad-gallery">
{% for gr in items %}
<h4 class="mt-4">{{ gr.caption }}</h4>
<div>
{{ gr.preview|raw }}
</div>
<div class="list-group mt-2">
{% for v in gr.albums %}
<a class="list-group-item list-group-item-action"
href="{{ path('olympiad_gallery_60_show',{id:v.id, group_id: gr.id}) }}">{{ v.caption }}</a>
{% endfor %}
</div>
{% endfor %}
</div>#}
</div>
{{ include('olympiads/iofs/stages.html.twig') }}
</div>
</div>
{% endblock %}