{% extends "webui/entities/base.html" %} {% load bootstrap_pagination thumbnail webui_tags %} {% block title %}files | {{ entity.id }}{% endblock %} {% block breadcrumbs %}{{ block.super }} {% breadcrumbs entity "Files" %} {% endblock breadcrumbs %} {% block content %}

{{ entity.id }}

{% if username and models_valid %} {% if entity.locked or collection.locked or collection.repo_behind or collection.repo_conflicted %}

{% if collection.repo_behind %} Editing is disabled until collection is synced. {% endif %} {% if collection.repo_conflicted %} Editing is disabled until merge conflict is resolved. {% endif %}

{% else %}{# locked/conflicted #}

Add a file

{% endif %}{# locked/conflicted #} {% endif %}{# username #} {% if page.object_list %}
{{ paginator.count }} items
{% if paginator.num_pages > 1 %} {% bootstrap_paginate page range=10 show_first_last="true" %} {% endif %} {% if username %} {% endif %} {% for file in page.object_list %} {% if username and models_valid %} {% endif %}{#username #} {% endfor %} {% if paginator.num_pages > 1 %} {% bootstrap_paginate page range=10 show_first_last="true" %} {% endif %} {% else %}

This object has no {{ role }} files.

{% endif %}{# page.object_list #}
Filename Label
{% if entity.locked or collection.locked or collection.repo_behind or collection.repo_conflicted %} Edit Delete {% else %} Edit Delete {% endif %}{# conflicted #} {% if file.access_present %} {% thumbnail file.access_abs "100x100" crop="center" as img %} {% endthumbnail %} {% else %}

No image

{% endif %}{# file.access_present #}
{{ file.basename }} ({{ file.size|filesizeformat }}) {{ file.label }}
{% endblock content %}