templates/media/widget/credits.html.twig line 1

Open in your IDE?
  1. <div class="my-3 p-3 bg-white rounded">
  2.     <h6 class="widget-page-title border-bottom border-gray pb-2 mb-2">
  3.         {{ 'People I worked with'|trans({}, 'profile_widget') }}
  4.     </h6>
  5.     {% if viewersProfiles|length or commonProfiles|length or profiles|length %}
  6.     <div class="row-cols-3 row-cols-md-6">
  7.         {% for profile in viewersProfiles %}
  8.             <figure class="figure">
  9.                 <a href="{{ path('profile', {slug: profile.slug}) }}" title="{{ profile.name }}" data-toggle="tooltip">
  10.                     <img src="{{ asset(get_profile_avatar(profile)) }}" class="rounded figure-img img-fluid ">
  11.                     <figcaption class="figure-caption text-center">{{ profile.name }}</figcaption>
  12.                 </a>    
  13.             </figure>
  14.         {% endfor %}
  15.         {% for profile in commonProfiles %}
  16.             <figure class="figure">
  17.                 <a href="{{ path('profile', {slug: profile.slug}) }}" title="{{ profile.name }}" data-toggle="tooltip">
  18.                     <img src="{{ asset(get_profile_avatar(profile)) }}" class="rounded figure-img img-fluid ">
  19.                     <figcaption class="figure-caption text-center">{{ profile.name }}</figcaption>
  20.                 </a>    
  21.             </figure>
  22.         {% endfor %}
  23.         {% for profile in profiles %}
  24.             <figure class="figure">
  25.                 <a href="{{ path('profile', {slug: profile.slug}) }}" title="{{ profile.name }}" data-toggle="tooltip">
  26.                     <img src="{{ asset(get_profile_avatar(profile)) }}" class="rounded figure-img img-fluid ">
  27.                     <figcaption class="figure-caption text-center">{{ profile.name }}</figcaption>
  28.                 </a>    
  29.             </figure>
  30.         {% endfor %}
  31.     </div>
  32.     {% if moreLink %}
  33.     <div class="d-block text-right mt-3">
  34.         <a href="{{ path('profile_credits', {slug: profile.slug}) }}" role="button" class="btn btn-sm btn-success">
  35.             {{ 'More profiles'|trans({}, 'profile_widget') }}
  36.         </a>
  37.     </div>
  38.     {% endif %}
  39.     {% else %}
  40.         <p class="text-center">{{ 'No collabs validated so far on this platform'|trans({}, 'profile_widget') }}</p>
  41.     {% endif %}
  42. </div>