{% extends "documents/base_documents.html" %} {% load i18n %} {% block content %}
| {% translate "Title" %} {% if title_sort.is_active %} {% if title_sort.direction == 'asc' %} {% else %} {% endif %} {% endif %} | {% translate "Updated at" %} {% if updated_sort.is_active %} {% if updated_sort.direction == 'desc' %} {% else %} {% endif %} {% endif %} | {% translate "Updated by" %} | {% translate "Tags" %} | {% translate "Folders" %} | {% translate "Linked items" %} | {% translate "Actions" %} |
|---|---|---|---|---|---|---|
| {{ folder.name }} | {{ folder.updated_at|date:"SHORT_DATETIME_FORMAT" }} | {{ item.updated_by|default:"—" }} | — | {% with parents=folder.parent_folders.all %} {% if parents %} {% for parent in parents %} {{ parent.name }} {% empty %} {% endfor %} {% else %} {% translate "None" %} {% endif %} {% endwith %} | — |
{% if folder.created_by_id == request.user.id or is_documents_admin %}
{% endif %}
{% if not folder.is_predefined %}
{% if folder.created_by_id == request.user.id or is_documents_admin %}
|
| {% if document.latest_version %} {% with document.latest_version.filename|slice:"-4:" as ext4 %} {% with document.latest_version.filename|slice:"-5:" as ext5 %} {% if ext4 == ".pdf" %} {% elif ext4 == ".doc" or ext5 == ".docx" %} {% elif ext4 == ".xls" or ext5 == ".xlsx" %} {% elif ext4 == ".ppt" or ext5 == ".pptx" %} {% elif ext4 == ".jpg" or ext5 == ".jpeg" or ext4 == ".png" or ext4 == ".gif" %} {% else %} {% endif %} {% endwith %} {% endwith %} {% else %} {% endif %} {{ document.title }}{% if document.get_file_extension %} ({{ document.get_file_extension }}){% endif %} | {{ document.updated_at|date:"SHORT_DATETIME_FORMAT" }} | {{ item.updated_by|default:"—" }} | {% for tag in document.tags.all %} {{ tag.name }} {% empty %} {% translate "None" %} {% endfor %} | {% for folder in document.folders.all %} {{ folder.name }} {% empty %} {% translate "None" %} {% endfor %} | {% for attachment in document.attachments.all %} {{ attachment.content_object }} {% empty %} {% translate "None" %} {% endfor %} | {% if document.created_by_id == request.user.id or is_documents_admin %} {% else %} — {% endif %} |
|
{% translate "No document available yet." %} |
||||||