{% import 'macro.html.twig' as web_macro %}
{% if files %}
<div class="chooser-list"><table class="table table-striped table-hover">
  <tbody>
  {% for file in files %}
    <tr id="material-table-tr-{{ file.id }}" class="file-browser-item"
      data-id="{{ file.id }}"
      data-name="{{ file.filename }}"
      data-status="{{ file.convertStatus }}"
      data-source="self"
      data-length="{{ file.length }}"
      data-size="{{ file.fileSize }}">
      <td class="mlm"> {{ file.filename }}</td>
      <td> {{ file.fileSize|file_size }}</td>
      <td> {{ file.createdTime|date('Y-m-d') }}</td>
    </tr>
  {% else %}

  {% endfor %}
  </tbody>
  </table></div>
{% else %}
  <div class="empty">{{'file_chooser.empty'|trans}}</div>
{% endif %}

{{ web_macro.paginator(paginator) }}
