{% extends 'layout.html.twig' %} {% import "macros.html.twig" as macros %} {% set breadcrumb = buildBreadcrumb([{'route': 'app_collection_index', 'trans': 'menu.collections'}], collection, 'breadcrumb.items_collection') %} {% block title %} {{ renderTitle(breadcrumb) }} {% endblock %} {% block breadcrumb %} {{ renderBreadcrumb(breadcrumb) }} {% endblock %} {% block meta %} {% if context == 'user' %} {{ include('App/_partials/_meta.html.twig', { 'title': renderTitle(breadcrumb), 'description': 'menu.collections_user'|trans({'%username%': app.request.get('username')}), 'image': collection.image }) }} {% else %} {{ parent() }} {% endif %} {% endblock %} {% block content %}
{% if collection.image != null %} {% else %} {{collection.title|first|upper}} {% endif %}

{{ collection.title }}

{% if context == 'default' %} {% endif %}
{% if items is not empty %}

{{ 'title.items'|trans }}

{% endif %}
{% endblock %} {% block modals %} {% if context == 'default' %} {{ include('App/_partials/_modal/_share.html.twig', {'entity': collection, 'route': url('app_user_collection_items', {id: collection.id, username: app.user.username})}) }} {% endif %} {% endblock %}