{% load i18n %} {% comment %} content of files that can be viewed online shows here. For details please refer to 'snippets/file_content_js.html'. {% endcomment %}
{% include 'snippets/file_encoding.html' %} {% if not err %} {% if filetype == 'Text' or filetype == 'Markdown' %} {% ifnotequal file_content None %} {% if filetype == 'Text' %} {% endif %} {% if filetype == 'Markdown' %}
{% endif %} {% endifnotequal %} {% endif %} {% if filetype == 'Image' %}
{% if from_shared_dir %} {% if img_prev %} {% endif %} {% if img_next %} {% endif %} {% endif %} {{ file_name }}
{% endif %} {% if filetype == 'SVG' %}
{{ file_name }}
{% endif %} {% if filetype == 'SpreadSheet' %} {% include 'snippets/spreadsheet_convert_html.html' %} {% endif %} {% else %}
{% if err != 'File preview unsupported' %}

{{ err }}

{% else %}

{% trans "Online view is not applicable to this file format" %}

{% endif %}
{% endif %}