{# 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') %} {% thumbnail object, 'admin' with {'width': 90} %} {% else %} {% thumbnail object, 'admin' with {'height': 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 %} {#{% set enabled_field_description = admin.getListFieldDescription('enabled') %}#} {#{% set url = path('sonata_admin_set_object_field_value', { 'context': 'list', 'field': enabled_field_description.name, 'objectId': admin.id(object), 'code': admin.code(object) }) %}#} {##} {#{{ block('field') }}#} {##}
{% endblock %}