{% import "macros.html.j2" as macros %}
<h2>Files</h2>
{% with files = ctx.db.list_files(uid=ctx.uid) %}
{% if files %}
{% for file in files %}
<div class="file row u-flex">
  <div class="details six columns">
    <span class="file-name">{{ file.filename }}</span>
  </div>
  <div class="controls u-flex u-ml-auto">
    {{ macros.start_job(file.id) }}
    {{ macros.delete_file(file.id) }}
  </div>
</div>
{% endfor %}
{% else %}
  You don't have any files. Upload something!
{% endif %}
{% endwith %}
