templates/Gallery/list.html.twig line 8

Open in your IDE?
  1. {% extends 'grid.html.twig' %}
  2. {% set city = app.request.get('city') %}
  3. {% block mainContainer %}
  4.     <h1>{% trans with {'%ofCity%': city.name|trans|geo_name('genitive')} %}Проститутки %ofCity%, шлюхи и путаны{% endtrans %}</h1>
  5.     {{ porpaginas_render(profiles) }}
  6.     <div class="row mb-3">
  7.     {% for profile in profiles %}
  8.         <div class="col-4">
  9.             <div class="card">
  10.                 <img class="card-img-top" src="{{ profile.photos[0].path }}" alt="">
  11.                 <div class="card-body">
  12.                     <h5 class="card-title"><a
  13.                                 href="{{ path('profile_preview.page', {'city': city.uriIdentity, 'profile': profile.uriIdentity}) }}"
  14.                                 title="">{{ profile.name|trans }}</a></h5>
  15.                     <h6 class="card-subtitle mb-2"><a href="tel:{{ profile.phoneNumber }}">{{ profile.phoneNumber }}</a>
  16.                     </h6>
  17.                     {% for station in profile.stationsSortedByPrimary %}
  18.                         <a href="{{ path('profile_list.list_by_station', {'city': city.uriIdentity, 'station': station.uriIdentity}) }}">{{ station.name|trans }} {% if loop.first %}*{% endif %}</a>
  19.                         {% if not loop.last %}, {% endif %}
  20.                     {% endfor %}
  21.                     <dl class="small">
  22.                         <dt>{% trans %}Возраст{% endtrans %}</dt>
  23.                         <dd>{{ profile.personParameters.age }}</dd>
  24.                         <dt>{% trans %}Рост{% endtrans %}</dt>
  25.                         <dd>{{ profile.personParameters.height }}</dd>
  26.                         <dt>{% trans %}Вес{% endtrans %}</dt>
  27.                         <dd>{{ profile.personParameters.weight }}</dd>
  28.                         <dt>{% trans %}Грудь{% endtrans %}</dt>
  29.                         <dd>{{ profile.personParameters.breastSize }}</dd>
  30.                     </dl>
  31.                     <dl class="small">
  32.                         <dt>{% trans %}Час{% endtrans %}</dt>
  33.                         <dd>{{ profile.apartmentsPricing.oneHourPrice }} руб</dd>
  34.                         <dt>{% trans %}2 часа{% endtrans %}</dt>
  35.                         <dd>{{ profile.apartmentsPricing.twoHoursPrice }} руб</dd>
  36.                         <dt>{% trans %}Ночь{% endtrans %}</dt>
  37.                         <dd>{{ profile.apartmentsPricing.nightPrice }} руб</dd>
  38.                     </dl>
  39.                     <p class="small">
  40.                         {% if profile.apartmentsPricing.isProvided %}
  41.                             {{ 'апартаменты'|trans }}
  42.                         {% endif %}
  43.                         {% if profile.takeOutPricing.isProvided %}
  44.                             {{ 'выезд'|trans }}
  45.                         {% endif %}
  46.                     </p>
  47.                     <p class="card-text text-muted small">{{ profile.description|trans }}</p>
  48.                 </div>
  49.             </div>
  50.         </div>
  51.         {% if loop.index % 4 == 0 %}</div><div class="row mb-3">{% endif %}
  52.     {% endfor %}
  53.     </div>
  54.     {{ porpaginas_render(profiles) }}
  55. {% endblock %}