{% set folder = _args.folder %}
{% embed '@CmsFile/Modal/includes/item.html.twig' with {
type: 'other',
title: folder.name,
timestamp: folder.timestampedAt
} %}
{% block preview %}
<a href="{{ curpath(routes.folder, { folderId: folder.id }) }}">
<em class="icon icon-lined-folder-front-b"></em>
</a>
{% endblock %}
{% block info %}
<p class="media__total">{{ ui_tree_estimation(folder) }} item(s)</p>
{% endblock %}
{% block actions %}
<li class="actions-li">
<a
class="actions-li__link"
href="{{- curpath(
routes.folder,
{
folderId: folder.id
}
) -}}"
>
<em class="icon icon-lined-folder-front-b"></em>
</a>
</li>
{% if modal.mode is same as('folder') %}
<li class="actions-li">
<a
class="actions-li__link"
href="#"
data-campussuite-modals-action-save="{{- folder.id|json_encode|escape('html_attr') -}}"
>
<em class="fa fa-plus"></em>
</a>
</li>
{% endif %}
{% endblock %}
{% endembed %}