{# This file is part of the Sonata package. (c) Thomas Rabaix For the full copyright and license information, please view the LICENSE file that was distributed with this source code. #} {% extends '@SonataAdmin/CRUD/list_outer_rows_mosaic.html.twig' %} {% block sonata_mosaic_default_view %} {{ object.providerName|trans({}, 'SonataMediaBundle') }} {% endblock %} {% block sonata_mosaic_hover_view %} {{ object.providerName|trans({}, 'SonataMediaBundle') }} {% if object.width %} {{ object.width }}{% if object.height %}x{{ object.height }}{% endif %}px{% endif %} {% if object.length > 0 %} ({{ object.length }}) {% endif %}
{% if object.authorname is not empty %} {{ object.authorname }} {% endif %} {% if object.copyright is not empty and object.authorname is not empty %} ~ {% endif %} {% if object.copyright is not empty %} © {{ object.copyright }} {% endif %} {% endblock %} {% block sonata_mosaic_description %} {% if admin.isGranted('EDIT', object) and admin.hasRoute('edit') %} {{ meta.title|truncate(40) }} {% elseif admin.isGranted('SHOW', object) and admin.hasRoute('show') %} {{ meta.title|truncate(40) }} {% else %} {{ meta.title|truncate(40) }} {% endif %} {% endblock %}