{# 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/base_list_flat_inner_row.html.twig' %} {% block row %}
{% if admin.isGranted('EDIT', object) and admin.hasRoute('edit') %} {{ sonata_thumbnail(object, 'admin', {'width': 90}) }} {% else %} {{ sonata_thumbnail(object, 'admin', {'width': 90}) }} {% endif %}
{{ object.providerName|trans({}, 'SonataMediaBundle') }} {% if admin.isGranted('EDIT', object) and admin.hasRoute('edit') %} {{ object.name }} {% else %} {{ object.name }} {% endif %}
{% 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 row %}