src/Cms/FileBundle/Resources/views/Modal/includes/items/Folder.html.twig line 1

Open in your IDE?
  1. {% set folder = _args.folder %}
  2. {% embed '@CmsFile/Modal/includes/item.html.twig' with {
  3.     type: 'other',
  4.     title: folder.name,
  5.     timestamp: folder.timestampedAt
  6. } %}
  7.     {% block preview %}
  8.         <a href="{{ curpath(routes.folder, { folderId: folder.id }) }}">
  9.             <em class="icon icon-lined-folder-front-b"></em>
  10.         </a>
  11.     {% endblock %}
  12.     {% block info %}
  13.         <p class="media__total">{{ ui_tree_estimation(folder) }} item(s)</p>
  14.     {% endblock %}
  15.     {% block actions %}
  16.         <li class="actions-li">
  17.             <a
  18.                 class="actions-li__link"
  19.                 href="{{- curpath(
  20.                     routes.folder,
  21.                     {
  22.                         folderId: folder.id
  23.                     }
  24.                 ) -}}"
  25.             >
  26.                 <em class="icon icon-lined-folder-front-b"></em>
  27.             </a>
  28.         </li>
  29.         {% if modal.mode is same as('folder') %}
  30.             <li class="actions-li">
  31.                 <a
  32.                     class="actions-li__link"
  33.                     href="#"
  34.                     data-campussuite-modals-action-save="{{- folder.id|json_encode|escape('html_attr') -}}"
  35.                 >
  36.                     <em class="fa fa-plus"></em>
  37.                 </a>
  38.             </li>
  39.         {% endif %}
  40.     {% endblock %}
  41. {% endembed %}