{% extends "community/_base.html" %} {% from "macros/box.html" import m_box_content, m_box_menu with context %} {% from "macros/audit.html" import m_audit_log %} {% from "macros/table.html" import m_table %} {% 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 %} {% 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 %}

{{ _('Created: %(date)s (%(age)s) by %(creator)s', date=(doc.created_at | datetimeformat('short')), age=doc.created_at | age(add_direction=False), creator=user_markup(doc.creator)) }} {%- if doc.updated_at != doc.created_at %}
{{ _('Last modification: %(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 %}
{{ viewers_snapshot(viewers,_("viewed by")) }}
{%- if doc.description %}

{{ doc.description }}

 

{%- endif %}

{{ _('Preview') }}

{%- 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 %} {{ m_audit_log(audit_entries) }} {% endblock %} {% block sidebar %} {%- set content_actions = actions.for_category('documents:content') %} {%- if content_actions %} {% call m_box_menu() %} {% endcall %} {%- endif %} {% endblock %} {% block modals %} {% include "documents/_modals_document.html" %} {% endblock %}