templates/media/widget/portfolio.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.         {{ 'Portfolio {name}'|trans({'{name}': profile.name}, 'media_portfolio') }}
  4.         {% if owner %}
  5.         <small><a href="{{ path('portfolio_album_manage', {slug: profile.slug, album: album.id}) }}" class="text-muted" role="button">
  6.             ({{ 'Manage portfolio'|trans({}, 'media_portfolio') }})
  7.         </a></small>
  8.         {% endif %}
  9.     </h6>
  10.         {% if media|length %}
  11.             <div class="row row-cols-3 row-cols-md-6">
  12.             {% for item in media %}
  13.                 {{ get_media_part(item, profile, owner, album)|raw }}
  14.             {% endfor %}
  15.             </div>
  16.         {% else %}
  17.             <p class="text-center">
  18.                 {{ '{name} doesn\'t have a portfolio yet'|trans({'{name}': profile.name}, 'media_portfolio') }}
  19.             </p>
  20.         {% endif %}
  21. </div>