templates/olymp-online/gallery/items.html.twig line 1

  1. {% extends 'layout/base.html.twig' %}
  2. {% block body_class %}
  3.     {{ parent() }}
  4.     olympiad-page
  5. {% endblock %}
  6. {% block title %}
  7.     {{ title("gallery.title"|trans) }}
  8. {% endblock %}
  9. {% block body %}
  10.     {% include "olympiads/iofs/presentation.html.twig" %}
  11.     <div class="olympiad iofs">
  12.         <div class="container iofs__inner">
  13.             <div class="iofs__content">
  14.                 <h2>{{ ("gallery.page_caption"|trans) }}</h2>
  15.                 <div class="olympiad-gallery-group">
  16.                     {% for gr in items %}
  17.                         <a class="gallery-group" href="{{ path('olympiad_gallery_60_group',{id:gr.id}) }}"
  18.                            style="background-image: url({{ vich_uploader_asset(gr.previewImage)|imagine_filter('gallery_group') }})">
  19.                             <span>{{ gr.caption }}</span>
  20.                         </a>
  21.                     {% endfor %}
  22.                 </div>
  23.                 {#   <hr>
  24.               <h1>Так было раньше</h1>
  25.                 <div class="olympiad-gallery">
  26.                     {% for gr in items %}
  27.                         <h4 class="mt-4">{{ gr.caption }}</h4>
  28.                         <div>
  29.                             {{ gr.preview|raw }}
  30.                         </div>
  31.                         <div class="list-group mt-2">
  32.                             {% for v in gr.albums %}
  33.                                 <a class="list-group-item list-group-item-action"
  34.                                    href="{{ path('olympiad_gallery_60_show',{id:v.id, group_id: gr.id}) }}">{{ v.caption }}</a>
  35.                             {% endfor %}
  36.                         </div>
  37.                     {% endfor %}
  38.                 </div>#}
  39.             </div>
  40.             {{ include('olympiads/iofs/stages.html.twig') }}
  41.         </div>
  42.     </div>
  43. {% endblock %}