{% extends 'base.html' %} {% load static %} {% load i18n %} {% block title %}{% trans 'File' %}: {{ file.name|wordwrap:60 }}{% endblock %} {% block content %}

{{ file.name }}

{% comment %} We want to have a sidebar on the left. So what we do is to split the page in three coloumns. The left and the right one are auto-sized while the center one just gets the normal container class (plus a px-0). For the main coloumn this has the same effect as using ml-auto, except we can position our sidebar in the left space {% endcomment %}
{% include 'mainapp/file/info_lg.html' %}
{% include 'mainapp/file/info_sm.html' %}
{% if renderer == "pdf" %}
                                    {% if pdf_parsed_text %}
                                        {{ file.parsed_text }}
                                    {% endif %}
                                
{% elif renderer == "txt" %}
{{ file.parsed_text }}
{% elif renderer == "image" %} {{ file.description }} {% elif renderer == "download" %}

{% trans "The file can not be shown" %}

{% trans "Download" %} {% else %}

{% trans "The file is not available" %}

{% endif %} {% comment %} Sometimes files from elected people countain information that must not be published on the internet, e.g. copyrighted images or confidential figures, but are published anyway because the administration doesn't check that. As by our experience google lists us higher than the original system, we're than the ones others want to sue. That's why we add a disclaimer below all files pointing to the original system where the file was originally published. We also delete all files when they are deleted in the original system. {% endcomment %} {% if settings.FILE_DISCLAIMER %}
{{ settings.FILE_DISCLAIMER }} {% if settings.FILE_DISCLAIMER_URL %} {% endif %}
{% endif %}
{# "Counterweight" for the left col to get the main container centered #}
{% endblock %}