{% 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 %} {% block content %} {% call m_box_content(title=_("Document view")) %}
{{ m_breadcrumbs2(breadcrumbs) }}

{%- if doc.antivirus_required %}

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

{%- elif not doc.antivirus_ok %}

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

{%- endif %}

{{ doc.title }}

{%- if doc.description %}

{{ doc.description }}

 

{%- endif %}

{{ _('Preview') }}

{%- if has_preview %}
{{ _('Previous') }} {{ _('Next') }}
{%- else %} {{ _("Document preview not yet available") }} {%- endif %}
{{ m_table([ (_('File name'), doc.title), (_('Size'), doc.content_length|filesize), (_('Content type (MIME)'), doc.content_type or ''), (_('Language'), doc.language or ''), ]) }}
{%- if doc.extra_metadata %}
{%- set sorted = doc.extra_metadata|dictsort %} {{ m_table(sorted) }}
{%- endif %}

{{ _('Created on') }}: {{ doc.created_at|date_age }}

{{ _('Last modified on') }}: {{ doc.updated_at|date_age }}

{{ _('Creator') }}: {{ doc.creator }}

{{ _('Owner') }}: {{ doc.owner }}

{{ m_audit_log(audit_entries) }}
{% endcall %} {% endblock %} {% block sidebar %} {%- set content_actions = actions.for_category('documents:content') %} {%- if content_actions %} {% call m_box_menu() %} {% endcall %} {%- endif %} {% endblock %} {% block modals %} {% endblock %} {% block js %} {% endblock %}