From 3543bfd4d6c2ff90417d775b4eac74e1f2bd8d10 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 5 Jun 2012 16:11:52 +0200 Subject: automatic detection of file types --- data/templates/edit-file.htm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'data') diff --git a/data/templates/edit-file.htm b/data/templates/edit-file.htm index a1993c5..aca61f9 100644 --- a/data/templates/edit-file.htm +++ b/data/templates/edit-file.htm @@ -1,4 +1,11 @@
+ {% if not file or file.isText %} + + {% else %} +

+ Binary files cannot be edited. +

+ {% endif %}
@@ -14,13 +21,6 @@

Type determined from filename

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

- Binary files cannot be edited. -

- {% endif %}
-- cgit v1.2.3