{{ file_icon(doc.title) }}{{ doc.title }}
{{- doc.content_length | filesize }} {%- if doc.page_num and doc.page_num > 1 %} · {{ ngettext("%(num)d page", "%(num)d pages", doc.page_num) }}{% endif %} · {{ m.avatar(doc.creator, "ads-avatar--xs") }}{{ m.time(doc.created_at) }} {%- if doc_comments %} · {{ ngettext("%(num)d comment", "%(num)d comments", doc_comments | length) }}{% endif -%}
{% if doc.antivirus_ok %}
{{ icon("download") }}{{ _("Download") }}
{% endif %}
{% if may_replace %}
{% endif %}
{% if may_write and not lock %}
{% endif %}
{% if may_write or may_manage %}
{% endif %}
{{ icon("dots-vertical") }}
{% if doc.antivirus_required %}
{{ icon("clock") }}{{ _("Waiting for virus check...") }}
{% elif not doc.antivirus_ok %}
{{ icon("alert-triangle") }}{{ _("Virus found. Access disabled.") }}
{% endif %}
{% if lock %}
{{ icon("lock") }}{{ _("Locked by %(user)s, who is working on it (%(age)s).", user=lock.user, age=lock.date | age) }}
{% if may_unlock %}
{% endif %}
{% endif %}
{% if doc.description %}{{ doc.description }}
{% endif %} {% if doc.antivirus_ok %} {#- An image is its own preview. -#}
{% if has_preview or doc.content_type.startswith("image/") %}
{% else %}
{% endif %}
{{ _("Document preview not yet available") }}
{% endif %}