src/Cms/FileBundle/Resources/views/Modal/container.html.twig line 1

Open in your IDE?
  1. {% extends '@CmsFile/Modal/includes/modal.html.twig' %}
  2. {% block crumbs %}
  3.     <nav aria-label="breadcrumbs">
  4.         <ol class="breadcrumb">
  5.             <li class="active">{{ container.name }}</li>
  6.         </ol>
  7.     </nav>
  8. {% endblock %}
  9. {% block actions %}
  10.     {% 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') %}
  11.         <a href="{{ curpath(routes.url) }}">+ Add custom URL</a>
  12.     {% endif %}
  13.     {% if is_granted('campussuite.cms.file.manage', container) %}
  14.         <a href="{{ curpath(routes.folder_root_create) }}">+ Add folder</a>
  15.     {% endif %}
  16. {% endblock %}
  17. {% block body %}
  18.     <div class="table-responsive">
  19.         <table class="media">
  20.             <thead class="media__thead">
  21.                 <tr class="media__row">
  22.                     <th
  23.                         class="media__details"
  24.                         data-campussuite-modals-action-navigate="{{- curpath(routes.container_sort, {
  25.                             sort: 'name',
  26.                             direction: (direction == 'asc') ? 'desc' : 'asc'
  27.                         }) -}}"
  28.                     >
  29.                         <div class="sort {{ direction }}{% if sort is same as('name') %} active{% endif %}">Filename</div>
  30.                     </th>
  31.                     <th
  32.                         class="media__datetime"
  33.                         data-campussuite-modals-action-navigate="{{- curpath(routes.container_sort, {
  34.                             sort: 'timestamp',
  35.                             direction: (direction == 'asc') ? 'desc' : 'asc'
  36.                         }) -}}"
  37.                     >
  38.                         <div class="sort {{ direction }}{% if sort is same as('timestamp') %} active{% endif %}">Date</div>
  39.                     </th>
  40.                     <th class="media__actions"></th>
  41.                 </tr>
  42.             </thead>
  43.             <tbody class="media__tbody">
  44.                 {% for current in folders %}
  45.                     {% include '@CmsFile/Modal/includes/items/Folder.html.twig' with {
  46.                         folder: current
  47.                     } %}
  48.                 {% endfor %}
  49.             </tbody>
  50.         </table>
  51.     </div>
  52. {% endblock %}