templates/ProfileList/list.html.twig line 279

Open in your IDE?
  1. {% extends 'grid.html.twig' %}
  2. {%- set isFirstPage = profiles.currentPage == 1 -%}
  3. {% set listingPage = profiles.currentPage is defined and profiles.currentPage > 1 %}
  4. {%- block title -%}
  5.     {{- seo_title() -}}
  6. {%- endblock -%}
  7. {%- block metaDescription -%}
  8.     <meta name="description" content="{{- seo_description() -}}">
  9. {%- endblock -%}
  10. {% block canonical %}<link rel="canonical" href="{{ canonical_url(actual_main_domain) }}{{ listingPage ? 'page' ~ profiles.currentPage ~ '/' : ''}}">{% endblock %}
  11. {%- block metaRobots -%}{%- if app.request.attributes.get('page') > 1 -%}<meta name="robots" content="noindex, follow" />{%- endif -%}{%- endblock -%}
  12. {%- block name_page -%}girls-list{%- endblock -%}
  13. {%- block current_menu_map -%} current{%- endblock -%}
  14. {%- block mainContainer -%}
  15.     {%- set excludeRecommendationProfileIds = [] -%}
  16.     {%- set conditionList = [
  17.         '/otzyvy/',
  18.         '/video/',
  19.         '/selfie/',
  20.         '/price/dorogie/',
  21.         '/price/deshevye/',
  22.         '/stancii/',
  23.         '/raiony/',
  24.         '/novye/',
  25.         '/massajistki/',
  26.         '/bdsm/',
  27.         '/intim-karta/',
  28.         '/proverennye/',
  29.         '/hudye/',
  30.         '/stroinye/',
  31.         '/sportivnye/',
  32.         '/plotnye/',
  33.         '/tolstye/',
  34.         '/russkie/',
  35.         '/ukrainki/',
  36.         '/kazashki/',
  37.         '/negrityanki/',
  38.         '/tatarki/',
  39.         '/aziatki/',
  40.         '/kirgizki/',
  41.         '/yaponki/',
  42.         '/kitayanki/',
  43.         '/taiki/',
  44.         '/armyanki/',
  45.         '/mulatki/',
  46.         '/tadzhichki/',
  47.         '/uzbechki/',
  48.         '/brunetki/',
  49.         '/shatenki/',
  50.         '/ryzhie/',
  51.         '/rusye/',
  52.         '/blondinki/',
  53.         '/nizkie/',
  54.         '/vysokie/',
  55.         '/molodye/',
  56.         '/zrelye/'
  57.         ]
  58.     %}
  59.     {%- set onlyThisPageSeoShow = false -%}
  60.     {%- for str in conditionList -%}
  61.         {%- if str in app.request.pathInfo -%}
  62.             {%- set onlyThisPageSeoShow = true -%}
  63.         {%- endif -%}
  64.     {%- endfor -%}
  65.     {%- set isMainCity = city.uriIdentity == default_city().uriIdentity -%}
  66.     {%- set isIndexPage = app.request.pathInfo == '/' -%}
  67.     {%- set isFirstPage = profiles.currentPage == 1 -%}
  68.     {%- set isStationPage = app.request.attributes.get('_route') == "profile_list.list_by_station" -%}
  69.     {# {%- set isShowTopSeo = (isFirstPage and onlyThisPageSeoShow) or isIndexPage -%}
  70.     {%- set isShowBottomSeo = (isFirstPage and onlyThisPageSeoShow) or isIndexPage -%} #}
  71.     {%- set isShowTopSeo = false -%}
  72.     {%- set isShowTopOnBottomSeo = isFirstPage -%}
  73.     {%- set isShowBottomSeo = isFirstPage -%}
  74.     {{- knp_menu_render('breadcrumbs', {'template': '_menu/breadcrumbs.html.twig'}) -}}
  75.     <header class="list_heading">
  76.         <h1 class="border-line list_heading__title">{{ seo_heading() ? seo_heading() : 'Проститутки города Москва' }}</h1>
  77.         <span class="list_heading__count">{% trans with {'count': profiles.totalCount} from 'profile_list' %}profile_count{% endtrans %}</span>
  78.     </header>
  79.     {# <div class="visually_hidden">
  80.         <svg class="profile_filter__item__button__icon" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24">
  81.             <path fill-rule="evenodd" clip-rule="evenodd" d="M19.46 6.7a1 1 0 0 0-1.42-1.4l-5.29 5.29-5.3-5.3a1 1 0 0 0-1.4 1.42L11.33 12l-5.3 5.3a1 1 0 1 0 1.42 1.4l5.29-5.29 5.3 5.3a1 1 0 0 0 1.4-1.42L14.17 12l5.3-5.3Z" fill="#fff"/>
  82.         </svg>
  83.     </div> #}
  84.     <div aria-hidden="true" class="no-display" style="display: none;">
  85.         <svg xmlns="http://www.w3.org/2000/svg">
  86.             <symbol id="close" viewBox="0 0 25 24">
  87.                 <path fill-rule="evenodd" clip-rule="evenodd" d="M19.46 6.7a1 1 0 0 0-1.42-1.4l-5.29 5.29-5.3-5.3a1 1 0 0 0-1.4 1.42L11.33 12l-5.3 5.3a1 1 0 1 0 1.42 1.4l5.29-5.29 5.3 5.3a1 1 0 0 0 1.4-1.42L14.17 12l5.3-5.3Z" fill="#fff"/>
  88.             </symbol>
  89.             <symbol id="expand" viewBox="0 0 25 24">
  90.                 <path fill-rule="evenodd" clip-rule="evenodd" d="M5.54 8.3a1 1 0 0 1 1.42 0l5.29 5.29 5.3-5.3a1 1 0 1 1 1.4 1.42l-6 6a1 1 0 0 1-1.4 0l-6-6a1 1 0 0 1 0-1.42Z" fill="#fff"/>
  91.             </symbol>
  92.             <symbol id="range" viewBox="0 0 25 24">
  93.                 <path d="M21.5 11h-1.18a2.98 2.98 0 0 0-5.64 0h-4.36a2.98 2.98 0 0 0-5.64 0H3.5a1 1 0 1 0 0 2h1.18a2.98 2.98 0 0 0 5.64 0h4.36a2.98 2.98 0 0 0 5.64 0h1.18a1 1 0 0 0 0-2Zm-14 2a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm10 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"/>
  94.             </symbol>
  95.         </svg>
  96.     </div>
  97.     {%- if isShowTopSeo -%}
  98.         {{- include('components/seo_text.html.twig', { "type": 'top', "noindex": true }) -}}
  99.     {%- endif -%}
  100.     {%- set isArchivePage =  'profile_list.list_archived' in app.request.attributes.get('_route') -%}
  101.     {# {% set isFormExist = profile_filter_form is defined and not isArchivePage %}
  102.     {% if isFormExist %}
  103.         <noindex>
  104.             <button class="filter_hide_button rounding" type="button" id="filter_hide_button">
  105.                 <svg class="filter_hide_button__icon" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.96 6h10l-5 6.3-5-6.3Zm-2.75-.39L9.96 13v6a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-6l5.74-7.39A1 1 0 0 0 18.91 4H5.01a1 1 0 0 0-.8 1.61Z" /></svg>
  106.                 <span class="filter_hide_button__text" data-filter-hide-text-show>Показать фильтры</span>
  107.                 <svg class="filter_hide_button__rotate" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.45 9.87a.84.84 0 0 1 1.24 0l3.3 3.5 3.32-3.5a.84.84 0 0 1 1.23 0c.34.36.34.95 0 1.3l-3.92 4.16a.84.84 0 0 1-1.24 0l-3.93-4.15a.96.96 0 0 1 0-1.31Z" /></svg>
  108.             </button>
  109.             <div class="filter_hide_block" id="filter_hide_block">
  110.                 {# Форма полей фильтрации #!}
  111.                 {{ form_start(profile_filter_form, {
  112.                     'attr': {
  113.                         'id': 'filter-form',
  114.                         'class': 'filter_form',
  115.                         'data-process-url': path('profile_ctr.increase_shows'),
  116.                         'data-main-class': 'profile_filter'
  117.                     }
  118.                 }) }}
  119.                     {{ include('ProfileList/filter/form.partial.twig', {filterData: profile_filter_form.vars.value}) }}
  120.                 {{ form_end(profile_filter_form) }}
  121.             </div>
  122.             <div class="profile_filter__tags__container fade_slider__container">
  123.                 <div class="profile_filter__tags d-none fade_slider" id="filter_tags"></div>
  124.             </div>
  125.             <div class="profile_filter__line" id="filter_line">
  126.                 <div class="profile_filter__line__title">Найдено <span class="profile_filter__line__title__count">{{ profiles.totalCount }} {{ profiles.totalCount|incline_numeral(['анкета', 'анкеты', 'анкет']) }}</span></div>
  127.                 <button class="profile_filter__line__reset" type="button" id="filter_line_reset">
  128.                     Сбросить фильтры
  129.                     <svg class="profile_filter__line__reset_icon" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.7 1.7A1 1 0 0 0 12.3.3L7 5.58 1.7.29A1 1 0 0 0 .3 1.71L5.58 7l-5.3 5.3a1 1 0 1 0 1.42 1.4L7 8.42l5.3 5.3a1 1 0 0 0 1.4-1.42L8.42 7l5.3-5.3Z" fill="#ED0C34"/></svg>
  130.                 </button>
  131.             </div>
  132.         </noindex>
  133.     {% endif %} #}
  134.     {# {% if source is defined and source and source_default != 'station' %}
  135.         <div class="empty-category level d-flex overflow-hidden mb-4 rounding">
  136.             <div class="empty-category__icon d-flex align-items-center justify-content-center">
  137.                 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 34 30"><path fill="#FF3F40" fill-rule="evenodd" d="M.5 29.25L17 .75l16.5 28.5H.5zm27.8-3L17 6.73 5.7 26.25h22.6zm-12.8-4.5v3h3v-3h-3zm0-9h3v6h-3v-6z" clip-rule="evenodd"/></svg>
  138.             </div>
  139.             <div class="flex-fill px-3 px-sm-4 py-3 d-flex align-items-center">
  140.                 <p class="m-0">
  141.                     {% if source == 'county' %}К сожалению, все девушки из округа
  142.                         <a href="{{ category_url }}">{{ county.name }}</a>
  143.                         сейчас отдыхают, посмотрите проституток из других округов города
  144.                         {{ city.name|trans }}.
  145.                     {% endif %}
  146.                     {% if source == 'district' %}К сожалению, все девушки из района
  147.                         <a href="{{ category_url }}">{{ district.name }}</a>
  148.                         сейчас отдыхают, посмотрите проституток из других районов города
  149.                         {{ city.name|trans }}.
  150.                     {% endif %}
  151.                     {% if source == 'station' %}К сожалению, все девушки работающие вблизи метро
  152.                         <a href="{{ category_url }}">{{ station.name }}</a>
  153.                         сейчас отдыхают, посмотрите проституток у других станций метро в этом районе города
  154.                         {{ city.name|trans }}.
  155.                     {% endif %}
  156.                     {% if source == 'approved' or source == 'with_comments' or  source == 'with_video' or source == 'elite' or source == 'with_selfie' %}
  157.                         {% if source == 'approved' %}
  158.                             {% set source_name = '<a href="' ~ path('profile_list.list_approved', {city:city.uriIdentity}) ~ '">Проверенные анкеты</a>' %}
  159.                         {% elseif source == 'with_comments' %}
  160.                             {% set source_name = '<a href="' ~ path('profile_list.list_with_comments', {city:city.uriIdentity}) ~ '">Анкеты с отзывами</a>' %}
  161.                         {% elseif source == 'with_video' %}
  162.                             {% set source_name = '<a href="' ~ path('profile_list.list_with_video', {city:city.uriIdentity}) ~ '">Анкеты с видео</a>' %}
  163.                         {% elseif source == 'with_selfie' %}
  164.                             {% set source_name = '<a href="' ~ path('profile_list.list_with_selfie', {city:city.uriIdentity}) ~ '">Анкеты с селфи</a>' %}
  165.                         {% elseif source == 'elite' %}
  166.                             {% set source_name = '<a href="' ~ path('profile_list.list_for_elite_girls', {city:city.uriIdentity}) ~ '">Элитные проститутки</a>' %}
  167.                         {% else %}
  168.                             {% set source_name = '' %}
  169.                         {% endif %}
  170.                         {% if source_default == 'approved' %}К сожалению, все
  171.                             <a href="{{ category_url }}">проверенные девушки</a>
  172.                             сейчас отдыхают, посмотрите раздел
  173.                             {{ source_name|raw }}
  174.                         {% endif %}
  175.                         {% if source_default == 'with_comments' %}К сожалению, все
  176.                             <a href="{{ category_url }}">девушки, у которых есть отзывы</a>
  177.                             сейчас отдыхают, посмотрите раздел
  178.                             {{ source_name|raw }}
  179.                         {% endif %}
  180.                         {% if source_default == 'with_video' %}К сожалению, все
  181.                             <a href="{{ category_url }}">девушки, у которых есть видео</a>
  182.                             сейчас отдыхают, посмотрите раздел
  183.                             {{ source_name|raw }}
  184.                         {% endif %}
  185.                         {% if source_default == 'with_selfie' %}
  186.                             К сожалению, все <a href="{{ category_url }}">девушки, у которых есть селфи</a> сейчас отдыхают, посмотрите раздел {{ source_name|raw }}
  187.                         {% endif %}
  188.                     {% endif %}
  189.                     {% if source == 'by_params' %}К сожалению, раздел пуст. Посмотрите другие анкеты, которые мы подобрали для Вас.
  190.                     {% endif %}
  191.                     {% if source == 'service' %}К сожалению, все девушки, которые практикуют услугу
  192.                         <a href="{{ category_url }}">{{ service.name }}</a>
  193.                         сейчас отдыхают. Но мы подобрали для Вас девушек которые не против оказать Вам похожие услуги, взгляните!
  194.                     {% endif %}
  195.                     {% if source == 'city' %}К сожалению, данный раздел пуст. Взгляните на другие анкеты, которые мы нашли для Вас в городе
  196.                         {{ city.name|trans }}.
  197.                     {% endif %}
  198.                     {% if source == 'country' %}К сожалению, данный раздел пуст. Взгляните на анкеты которые мы подобрали для Вас.
  199.                     {% endif %}
  200.                     {% if source == 'massage_service' %}К сожалению, все девушки для которых массаж — это призвание сейчас отдыхают. Посмотрите проституток, которые также готовы сделать Вам массаж.
  201.                     {% endif %}
  202.                 </p>
  203.             </div>
  204.         </div>
  205.     {% endif %} #}
  206. {# {{ dump({source: source, source_default: source_default})}} #}
  207.     <div id="filter-form-root">
  208.         <button class="filter_hide_button rounding" type="button" id="filter_hide_button">
  209.             <svg class="filter_hide_button__icon" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.96 6h10l-5 6.3-5-6.3Zm-2.75-.39L9.96 13v6a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-6l5.74-7.39A1 1 0 0 0 18.91 4H5.01a1 1 0 0 0-.8 1.61Z" /></svg>
  210.             <span class="filter_hide_button__text" data-filter-hide-text-show>Показать фильтры</span>
  211.             <svg class="filter_hide_button__rotate" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.45 9.87a.84.84 0 0 1 1.24 0l3.3 3.5 3.32-3.5a.84.84 0 0 1 1.23 0c.34.36.34.95 0 1.3l-3.92 4.16a.84.84 0 0 1-1.24 0l-3.93-4.15a.96.96 0 0 1 0-1.31Z" /></svg>
  212.         </button>
  213.         <div class="filter_hide_block" id="filter_hide_block">
  214.             {# Форма полей фильтрации #}
  215.             <form name="profile_filter_form" method="post" action="/filter/" class="filter_form" id="filter-form" data-process-url="/profile_ctr/increase-shows/" data-main-class="profile_filter">
  216.                 <div class="profile_filter">
  217.                     <button class="profile_filter__mobile_button" type="button"><span class="profile_filter__mobile_button__text">Показать фильтры</span> <svg class="profile_filter__mobile_button__icon" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.96 6h10l-5 6.3-5-6.3Zm-2.75-.39L9.96 13v6a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-6l5.74-7.39A1 1 0 0 0 18.91 4H5.01a1 1 0 0 0-.8 1.61Z" fill="#fff"></path></svg></button>
  218.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  219.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  220.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  221.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  222.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  223.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  224.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  225.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  226.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  227.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  228.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  229.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  230.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  231.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  232.                     <div class="profile_filter__item rounding profile_filter__item--loading"></div>
  233.                 </div>
  234.             </form>
  235.         </div>
  236.         <div class="profile_filter__tags__container fade_slider__container">
  237.             <div class="profile_filter__tags d-none fade_slider" id="filter_tags"></div>
  238.         </div>
  239.         <div class="profile_filter__line" id="filter_line">
  240.             <div class="profile_filter__line__title">Найдено <span class="profile_filter__line__title__count">{{ profiles.totalCount }} {{ profiles.totalCount|incline_numeral(['анкета', 'анкеты', 'анкет']) }}</span></div>
  241.             <button class="profile_filter__line__reset" type="button" id="filter_line_reset">Сбросить фильтры <svg class="profile_filter__line__reset_icon" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.7 1.7A1 1 0 0 0 12.3.3L7 5.58 1.7.29A1 1 0 0 0 .3 1.71L5.58 7l-5.3 5.3a1 1 0 1 0 1.42 1.4L7 8.42l5.3 5.3a1 1 0 0 0 1.4-1.42L8.42 7l5.3-5.3Z" fill="#ED0C34"/></svg>
  242.             </button>
  243.         </div>
  244.     </div>
  245.     {%- set fakeStationList = source_default is defined and source is defined and source_default == 'station' and source_default != source -%}
  246.     <div class="models-items-row flex-wrap" id="profile-list" data-show-more-append>
  247.         {%- block profileList -%}
  248.             {%- include 'ProfileList/list.profiles.html.twig' with {fakeStationList: fakeStationList|default(false)} -%}
  249.         {%- endblock -%}
  250.     </div>
  251.     {%- if profiles and profiles.totalCount > profiles.currentPage * profiles.currentLimit -%}
  252.         {%- block showMore -%}
  253.             {%- include 'ProfileList/_show_more.profiles.html.twig' -%}
  254.         {%- endblock showMore -%}
  255.     {%- endif -%}
  256.     {{- porpaginas_render(profiles) -}}
  257.     {# {% if profiles and profiles.currentPage >= 2 %}
  258.         {{ include('components/_profile_recommendations.html.twig') }}
  259.     {% endif %} #}
  260.     {# Реки #}
  261.     {# {%- if profiles and profiles.currentPage >= 2 -%} #}
  262.         <div id="recommendations">
  263.             {%- set excludeRecommendationProfileIds = profiles|map(p => p.id)|join(', ') -%}
  264.             {%- include 'recommendations/_profile_recommendations.html.twig' with {'hidden': not (profiles and profiles.currentPage >= 2)} -%}
  265.         </div>
  266.     {# {%- endif -%} #}
  267.     {# {% set stations_circle = station_pages_linkage_circle() %}
  268.     {% if stations_circle is not null %}
  269.         <div class="station-pages-linkage-circle">
  270.             {% if stations_circle[0] is defined and stations_circle[0] is not null %}<a href="{{ stations_circle[0].href }}"><i class="prev"></i>{{ stations_circle[0].text }}</a>{% endif %}
  271.             {% if stations_circle[0] is defined and stations_circle[0] is not null
  272.                 and stations_circle[1] is defined and stations_circle[1] is not null %}<i class="sep"></i>{% endif %}
  273.             {% if stations_circle[1] is defined and stations_circle[1] is not null %}<a href="{{ stations_circle[1].href }}">{{ stations_circle[1].text }}<i class="next"></i></a>{% endif %}
  274.         </div>
  275.     {% endif %} #}
  276.     {%- if isShowTopOnBottomSeo -%}
  277.         {{- include('components/seo_text.html.twig', { "type": 'top', "noindex": true }) -}}
  278.     {%- endif -%}
  279.     {%- if isShowBottomSeo -%}
  280.         {{- include('components/seo_text.html.twig', { "type": 'bottom', "noindex": true }) -}}
  281.     {%- endif -%}
  282.     {# {% if profiles.currentPage == 1 and app.request.get('_route') == 'profile_list.list_by_station' %}
  283.         <div class="location_counters" id="location_counters">
  284.             {{ knp_menu_render('locations_counters', {'template': '_menu/locations_counters_block.html.twig'}) }}
  285.         </div>
  286.     {% endif %} #}
  287. {%- endblock -%}
  288. {%- block javascripts -%}
  289.     <script>
  290.         window._lD = {
  291.             setLastViewedListing: '{{ app.request.attributes.get('_route') }}',
  292.             cityUrl: "{{city.uriIdentity}}",
  293.         };
  294.     </script>
  295.     {{- parent() -}}
  296.     {%- set route = app.request.get('_route') -%}
  297.     {%- if 'profile_search.page' not in route and not (app.request.method == 'GET' and app.request.isXmlHttpRequest()) -%}
  298.         <script>
  299.             window._mp = {
  300.                 formUrl: "{{ path('profile_filters.form', {city: city.uriIdentity}) }}",
  301.                 setLastViewedListing: '{{ app.request.attributes.get('_route') }}',
  302.                 listingData: [
  303.                     ['listing', '{{ listing }}'],
  304.                     ['listingParams', '{{ listing_parameters|json_encode() }}'.replaceAll('&quot;', '"')],
  305.                 ],
  306.                 stations: {
  307.                     {%- for station in stations() -%}
  308.                         "{{ station.name|trans }}": "{{ path('profile_list.list_by_station', {'city': station.city.uriIdentity, 'station': station.uriIdentity}) }}"{% if not loop.last %},{% endif %}
  309.                     {%- endfor -%}
  310.                 }
  311.             }
  312.             document.addEventListener("DOMContentLoaded", () => {
  313.                 new window._filterLoader({
  314.                     formUrl: "{{ path('profile_filters.form', {city: city.uriIdentity}) }}",
  315.                     defaultProfilesCount: "{{ profiles.totalCount }}"
  316.                 });
  317.                 {# {% if profiles and profiles.totalCount > 0 %}
  318.                     {%- set profilesId = profiles|map(p => p.id)|join(',') -%}
  319.                     window.increase_shows({
  320.                         profiles: [{{ profilesId }}],
  321.                         route: '{{ app.request.attributes.get('_route') }}',
  322.                     })
  323.                 {% endif %} #}
  324.             })
  325.         </script>
  326.         {# {% endif %} #}
  327.     {%- endif -%}
  328. {%- endblock -%}