{% extends '@CmsFile/Modal/includes/modal.html.twig' %}
{% block crumbs %}
<nav aria-label="breadcrumbs">
<ol class="breadcrumb">
<li class="active">{{ container.name }}</li>
</ol>
</nav>
{% endblock %}
{% block actions %}
{% if modal.mode is defined and modal.mode is not same as('id') and modal.mode is not same as('folder') and modal.mode is not same as('smm') and modal.mode is not same as('attachments') %}
<a href="{{ curpath(routes.url) }}">+ Add custom URL</a>
{% endif %}
{% if is_granted('campussuite.cms.file.manage', container) %}
<a href="{{ curpath(routes.folder_root_create) }}">+ Add folder</a>
{% endif %}
{% endblock %}
{% block body %}
<div class="table-responsive">
<table class="media">
<thead class="media__thead">
<tr class="media__row">
<th
class="media__details"
data-campussuite-modals-action-navigate="{{- curpath(routes.container_sort, {
sort: 'name',
direction: (direction == 'asc') ? 'desc' : 'asc'
}) -}}"
>
<div class="sort {{ direction }}{% if sort is same as('name') %} active{% endif %}">Filename</div>
</th>
<th
class="media__datetime"
data-campussuite-modals-action-navigate="{{- curpath(routes.container_sort, {
sort: 'timestamp',
direction: (direction == 'asc') ? 'desc' : 'asc'
}) -}}"
>
<div class="sort {{ direction }}{% if sort is same as('timestamp') %} active{% endif %}">Date</div>
</th>
<th class="media__actions"></th>
</tr>
</thead>
<tbody class="media__tbody">
{% for current in folders %}
{% include '@CmsFile/Modal/includes/items/Folder.html.twig' with {
folder: current
} %}
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}