{% extends "community/_base.html" %} {% from "macros/box.html" import m_box_content, m_box_menu with context %} {% from "documents/_macros_audit.html" import m_audit_log %} {% from "macros/table.html" import m_table %} {%- from "community/macros.html" import show_all_viewers -%} {% from "documents/_macros.html" import m_docs_table, m_breadcrumbs2 with context %} {%- from "community/macros.html" import viewers_snapshot -%} {% macro user_markup(user) %} {{ user }} {% endmacro %} {% macro m_breadcrumbs_path(breadcrumbs) %} {% for obj in breadcrumbs[0:-1] %} {{ obj.label }} / {% endfor %} {% if doc.lock %} {% endif %} {{ doc.title }} {% endmacro %} {% block content %} {# #} {%- if doc.antivirus_required %}
{{ m_breadcrumbs2(breadcrumbs) }}

{% trans %}Waiting for virus check...{% endtrans %}

{%- elif not doc.antivirus_ok %}

{%- trans %}Virus found. Access disabled.{%- endtrans %}

{%- endif %}

{{ m_breadcrumbs_path(breadcrumbs) }}


{{ _("Back to document list") }}
{%- if doc.antivirus_ok %} {{ _('Download') }} ({{ doc.content_length|filesize }}) {%- endif %}


{%- if doc.description %}

{{ doc.description }}

 

{%- endif %}
{%- if has_preview %} {{ _('Previous') }} {{ _('Next') }} {%- deferJS %} {%- enddeferJS %} {%- else %} {{ _("Document preview not yet available") }} {%- endif %}
{%- if doc.extra_metadata %}
{%- set sorted = doc.extra_metadata|dictsort %} {{ m_table(sorted) }}
{%- endif %} {% endblock %} {% block sidebar %}

{{ doc.title|truncate(32, False, '...', 0) }}

{{ _("Owner") }} : {{ user_markup(doc.creator) }}
{{ _('Uploaded: %(date)s (%(age)s)', date=(doc.created_at | datetimeformat('short')), age=doc.created_at | age(add_direction=False)) }} {%- if doc.updated_at != doc.created_at %}
{{ _('Modified: %(date_age)s', date_age=doc.updated_at|age(add_direction=False, date_threshold='day')) }} {%- set lock = doc.lock %} {%- if lock %}
{{ _('Locked for edition by %(user)s at %(date)s (%(age)s)', user=lock.user, date=lock.date | datetimeformat('short'), age=lock.date | age) }}
{%- endif %} {%- endif %}
{% if g.is_manager %}

{{ _('Readers') }}

{{ show_all_viewers(viewers,_("viewed by")) }}
{% endif %}

{{ _('Last Changes') }}

{{ m_audit_log(audit_entries) }}
{%- deferJS %} {%- enddeferJS %} {% endblock %} {% block modals %} {% include "documents/_modals_document.html" %} {% include "documents/_modals_folder_move.html" %} {% include "documents/_modals_document_upload_new_version.html" %} {% endblock %}