{% extends '@KunstmaanAdminList/Default/list.html.twig' %} {% block body %} {% set lowestTopChild = foldermanager.getRootFolderFor(folder) %} {% if lowestTopChild %} {% set navigationChildren = foldermanager.getFolderHierarchy(lowestTopChild) %} {% endif %} {{ parent() }} {% endblock %} {% block sidebar %} {% endblock %} {% block breadcrumb %} {% include '@KunstmaanMedia/Folder/breadcrumbs.html.twig' %} {% endblock %} {% block header %}

{{ folder.name }} {% block page_header_addition %}{% endblock %}

{% block extra_actions_header %}{% endblock %} {% endblock %} {% block content %}
{% block actions %}
{% endblock %}
{{ block('actions') }}
dnd

{{ 'media.media.dnd.alert.title' |trans }}

{{ 'media.media.dnd.alert.text' |trans }}

    {% if app.session.get('media-list-view') %} {% if adminlist.count > 0 %} {{ parent() }} {% else %} {{ parent() }}

    {{ 'media.media.no' |trans }}

    {% endif %} {% else %} {{ adminthumb_widget(adminlist, adminlist.getIndexUrl()["path"], adminlist.getIndexUrl()['params']) }}
    {% include '@KunstmaanAdminList/AdminListTwigExtension/limit.html.twig' %}
    {% if adminlist.count > 0 %} {% if adminlist.pagerfanta.haveToPaginate() %} {{ pagerfanta(adminlist.pagerfanta, 'twitter_bootstrap_translated') }} {% endif %}
    {% for media in adminlist.items %} {% set handler = mediamanager.getHandler(media) %} {% set imageurl = handler.getImageUrl(media, app.request.basePath) %} {% if imageurl is not empty and media.location == 'local' %} {% if imageurl|lower|split('.')|last == 'svg' or 'image/svg' in media.contentType %} {% set imageurlretina = imageurl %} {% else %} {% set imageurlretina = asset(imageurl | imagine_filter('media_list_thumbnail_retina')) %} {% set imageurl = asset(imageurl | imagine_filter('media_list_thumbnail')) %} {% endif %} {% endif %} {# Clearfixes #} {% if loop.index is divisible by(2) %}
    {% endif %} {% if loop.index is divisible by(3) %}
    {% endif %} {% if loop.index is divisible by(4) %}
    {% endif %} {% endfor %}
    {% if adminlist.pagerfanta.haveToPaginate() %} {{ pagerfanta(adminlist.pagerfanta, 'twitter_bootstrap_translated') }} {% endif %} {% else %}

    {{ 'media.media.no' |trans }}

    {% endif %} {% endif %}
    {% form_theme editform '@KunstmaanAdmin/Form/fields.html.twig' %} {{ form_start(editform, {'method': 'POST', 'action': path('KunstmaanMediaBundle_folder_show', { 'folderId' : folder.id }) ~ '#properties'}) }}
    {{ form_widget(editform) }}
    {{ form_end(editform) }}
    {% include '@KunstmaanMedia/Folder/addsub-modal.html.twig' %} {% include '@KunstmaanMedia/Folder/delete-modal.html.twig' %} {% include '@KunstmaanMedia/Folder/empty-modal.html.twig' %} {% include '@KunstmaanMedia/Folder/bulk-move-modal.html.twig' %} {% endblock %} {% block js_footer %} {% embed "@KunstmaanAdmin/Default/_js_footer.html.twig" %} {% block extra_async_javascripts %} {{ parent() }} '{{ asset('bundles/kunstmaanmedia/js/media-bundle.min.js') }}', {% endblock %} {% endembed %} {% endblock %}