{% if content_size > max_content_size %}
Content is too large to be displayed (size is greater than {{ max_content_size|filesizeformat }}).
{% elif "inode/x-empty" == mimetype %}
File is empty
{% elif "text/" in mimetype %}
{{ content }}
{% elif "image/" in mimetype and content %}
{% else %}
Content with mime type {{ mimetype }} can not be displayed.
{% endif %}