{% extends "office/base_headline.html" %} {% load i18n %} {% load static %} {% block headline %}{% trans "Document details" %}{% endblock %} {% block content %}
{% trans "Date" %} {% trans "Direction" %} {% trans "Category" %} {% trans "Title / Information" %}
{{ document.date }} {{ document.direction }} {{ document.category | translate_document_category }} {% if document.title %}{{ document.title }}
{% endif %} {% if document.content_hash_ok %} {% else %} {% trans "File corrupted or modified" %} {% endif %} {{ document.document.size }} {% trans "bytes" %}, {{ document.mime_type_guessed }}
{% if document.mime_type_guessed == 'application/pdf' or 'image/' in document.mime_type_guessed %} {# We should sandbox the iframe, but Chrome doesn't allow PDF rendiering then #} {% else %} Link: {{document.document}} {% endif %}
{% endblock %}