templates/DistrictList/list.html.twig line 1

Open in your IDE?
  1. {% extends 'grid.html.twig' %}
  2. {% block bodyClasses %}{% endblock %}
  3. {% block specialPageClass %} full-width-page{% endblock %}
  4. {% block title %}
  5.     {{ seo_title() }}
  6. {% endblock %}
  7. {% block metaDescription %}
  8.     <meta name="description" content="{{ seo_description() }}">
  9. {% endblock %}
  10. {% block mainContainer %}
  11.     <h1 role="heading" class="border-line">{{ seo_heading() ? seo_heading() : 'Проститутки по районам города Москва' }}</h1>
  12.     <div class="city-block">
  13.         {% set currentCounty = null %}
  14.         {% set sorted_stations = city.counties|sort((a, b) => a.name|upper <=> b.name|upper) %}
  15.         {% for county in sorted_stations %}
  16.             {% if loop.index == (loop.length/2+1) or loop.index == 1 %}
  17.                 <div class="column">
  18.             {% endif %}
  19.             <div class="title">
  20.                 <a href="{{ path('profile_list.list_by_county', {'city': city.uriIdentity, 'county': county.uriIdentity}) }}">{{ county.name|trans }}</a>
  21.             </div>
  22.             <ul>
  23.                 {% for district in county.districts|sort((a, b) => a.name|trans|upper <=> b.name|trans|upper) %}
  24.                     <li>
  25.                         <a href="{{ path('profile_list.list_by_district', {'city': city.uriIdentity, 'district': district.uriIdentity}) }}">{{ district.name|trans }}</a><br>
  26.                     </li>
  27.                 {% endfor %}
  28.             </ul>
  29.             {% if loop.index == (loop.length/2) or loop.revindex == 1 %}
  30.                 </div>
  31.             {% endif %}
  32.         {% endfor %}
  33.     </div>
  34.     {{- include('components/seo_text.html.twig', { "type": 'top', "noindex": true }) -}}
  35.     {{ include('components/seo_text.html.twig', { "type": 'bottom', "noindex": true }) }}
  36. {% endblock %}