<div class="my-3 p-3 bg-white rounded">
<h6 class="widget-page-title border-bottom border-gray pb-2 mb-2">
{{ 'Portfolio {name}'|trans({'{name}': profile.name}, 'media_portfolio') }}
{% if owner %}
<small><a href="{{ path('portfolio_album_manage', {slug: profile.slug, album: album.id}) }}" class="text-muted" role="button">
({{ 'Manage portfolio'|trans({}, 'media_portfolio') }})
</a></small>
{% endif %}
</h6>
{% if media|length %}
<div class="row row-cols-3 row-cols-md-6">
{% for item in media %}
{{ get_media_part(item, profile, owner, album)|raw }}
{% endfor %}
</div>
{% else %}
<p class="text-center">
{{ '{name} doesn\'t have a portfolio yet'|trans({'{name}': profile.name}, 'media_portfolio') }}
</p>
{% endif %}
</div>