{% if not file or file.isText %} {% else %}

Binary files cannot be edited.

{% endif %}
{% if not newfile %}
{% endif %}