{% extends 'core/project_nav.html' %} {% load i18n staticfiles thumbnail bootstrap %} {% block head_title %}{% trans "My Documents" %}{% endblock %} {% block nav-docs-active %}active{% endblock %} {% block extra_nav %} {% if can_create_document %} {% trans 'Create new Document' %} {% endif %} {% if share_form %} {% endif %} {% endblock %} {% block tab_content %}
{% if document_tags %}
{% trans 'Filters' %}
{% else %}
{% endif %} {% for document in object_list %} {% comment %} {% endcomment %} {% endfor %}
{% with part=document.parts.first %} {% if part %} {% endif %} {% endwith %} {{ document.name }} {% if document.typology %}
{{ document.typology|default_if_none:'-' }}{% endif %}
{{document.owner}} {% with groups=document.shared_with_groups.all %} {% if groups %}
{{ groups|join:', ' }}{% endif %} {% endwith %}
{{ document.last_edited_part.updated_at|date }} {% blocktrans with count=document.parts.count %}{{ count }} image(s).{% endblocktrans %} {% for tag in document.tags.all %} {{ tag.name | truncatechars:10 }} {% endfor %} {% if document.workflow_state %}{% else %}{% endif %} {# #} {# Note that doing one query per row is a lot faster than a subquery for some reason #} {% if document.last_edited_part %} {% endif %} {% if document.owner == request.user %}
{% csrf_token %}
{% elif request.user in document.shared_with_users.all %}
{% csrf_token %}
{% endif %}
{% include 'includes/pagination.html' %} {% endblock %} {% block modals %} {% if share_form %} {% include 'core/share/share_project.html' %} {% endif %} {% endblock %} {% block scripts %} {{ block.super }} {% endblock %}