templates/ProfileList/station_comments.partial.html.twig line 1

Open in your IDE?
  1. {% if 'profile_list.list_by_station' in app.request.get('_route') and 'profile_list.list_by_stations' != app.request.get('_route') %}
  2.     {% set station = app.request.attributes.get('station') %}
  3.     <h2>Отзывы: проститутки {{ station.name }}</h2>
  4.     <ul>
  5.         {% for comment in station_comments(station, 5) %} {# station_comments(station, count) #}
  6.             <li>
  7.                 <a href="{{ path('profile_preview.page', {'city': comment.profile.city.uriIdentity, 'profile': comment.profile.uriIdentity}) }}">
  8.                     {% set photo = comment.profile|avatar %}
  9.                     {% if photo is not null %}
  10.                         <img width="100" src="{{ responsive_asset(photo.path, photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar', '357x500', 'jpg') }}" alt="">
  11.                     {% endif %}
  12.                     {{ comment.profile.name }}
  13.                 </a>
  14.                 {{ comment.user ? comment.user.nickName : 'Аноним' }}
  15.                 {{ comment.createdAt|date('Y.m.d H:i:s') }}
  16.                 {{ comment.text }}
  17.             </li>
  18.         {% endfor %}
  19.     </ul>
  20. {% endif %}