{% load i18n %} {% with dept_q=section.department_id %} {% if message %}
{{ message }}
{% endif %} {% if crumbs or section.department_name or section.key == 'mine' %}
{% if section.key == 'org' %}{% trans "Структура" %}{% elif section.key == 'mine' %}{% trans "Мой отдел" %}{% else %}{{ section.label }}{% endif %} {% if section.key == 'org' and section.department_name %} / {{ section.department_name }} {% elif section.key == 'mine' and section.department_name and crumbs %} / {{ section.department_name }} {% endif %} {% for c in crumbs %} / {% if forloop.last %} {{ c.name }} {% else %} {{ c.name }} {% endif %} {% endfor %} {% if can_manage_acl and section.key == 'org' and dept_q or can_manage_acl and section.key == 'mine' and dept_q or can_manage_acl and section.key != 'org' and section.key != 'mine' %} {% endif %}
{% elif can_manage_acl %}
{% endif %} {% if error == 'not_configured' %}
{% trans "Файловое хранилище пока не настроено." %}
{% elif error == 'access_denied' %}
{% trans "Немає доступу до цього каталогу. Зверніться до адміністратора для видачі прав." %}
{% elif error %}
{% trans "Не удалось получить список документов." %}
{% else %}
{% if section.key == 'mine' and section.department_name and not crumbs %}
{% trans "Документы отдела" %}: {{ section.department_name }}
{% endif %} {% if files %}
{% for f in files %} {% if can_edit_here and not f.is_virtual_dept and not f.is_shared_target %} {% endif %} {% endfor %}
{% if f.is_shared_target %} {% include "partials/documents-share-link.html" with f=f onlyoffice_ready=onlyoffice_ready %} {% elif f.is_virtual_dept %} {{ f.name }} {% elif f.is_dir %} {{ f.name }} {% else %} {% if f.is_office and onlyoffice_ready %} {{ f.name }} {% trans "скачать" %} {% elif f.is_previewable %} {{ f.name }} {% trans "скачать" %} {% else %} {{ f.name }} {% endif %} {% if can_manage_acl or f.can_edit %} {% endif %} {% endif %} {% if f.size is not None %}{{ f.size|filesizeformat }}{% endif %} {% if f.can_edit %}edit {% elif f.can_view %}view{% endif %} {% if f.can_edit %}
{% csrf_token %} {% if dept_q and section.key == 'org' %}{% endif %}
{% csrf_token %} {% if dept_q and section.key == 'org' %}{% endif %}
{% endif %}
{% elif not files %}
{% if section.key == 'mine' %}{% trans "В папке отдела пока нет файлов." %}{% else %}{% trans "В этой папке пока нет файлов." %}{% endif %}
{% endif %} {% if share_entries %}
{% trans "Дополнительно доступно" %}
{% for f in share_entries %} {% endfor %}
{% include "partials/documents-share-link.html" with f=f onlyoffice_ready=onlyoffice_ready %} {% if f.can_edit %}edit {% else %}view{% endif %}
{% endif %} {% if can_create_here %}
{% csrf_token %} {% if dept_q and section.key == 'org' %}{% endif %}
{% csrf_token %} {% if dept_q and section.key == 'org' %}{% endif %}
{% endif %}
{% endif %} {% endwith %}