templates/CityList/list_by_country.html.twig line 1

Open in your IDE?
  1. {% extends 'grid.html.twig' %}
  2. {% set linkLangSupport = app.request.locale == 'en' ? '/en' : '' %}
  3. {% block bodyClasses %}{% endblock %}
  4. {% block specialPageClass %} full-width-page{% endblock %}
  5. {% set city = app.request.get('city') %}
  6. {% block mainContainer %}
  7.     <h1 role="heading" class="border-line">{{ seo_heading() ? seo_heading() : 'Проститутки по городам' }}</h1>
  8.     <div class="city-block">
  9.         {% for countryName, countryCities in cities %}
  10.             {% for cityData in countryCities %}
  11.                 {% if loop.index == (loop.length/2+1) or loop.index == 1 %}
  12.                     <div class="column"><ul>
  13.                 {% endif %}
  14.                     <li>
  15.                         <a href="{{ cityData.uri }}" >{{ cityData.city.name|trans }} ({{ cityData.count }})</a>
  16.                     </li>
  17.                 {% if loop.index == (loop.length/2) or loop.revindex == 1 %}
  18.                     </ul></div>
  19.                 {% endif %}
  20.             {% endfor %}
  21.         {% endfor %}
  22.     </div>
  23. {% endblock %}