diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/edit-file.htm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/edit-file.htm b/data/templates/edit-file.htm index 53c2c01..a1993c5 100644 --- a/data/templates/edit-file.htm +++ b/data/templates/edit-file.htm @@ -14,7 +14,13 @@ <p class="muted">Type determined from filename</p> </div> </div> + {% if not file or file.isText %} <textarea name="files[{{fileid}}][content]" id="content_{{fileid}}" cols="80" rows="15" class="content">{{file.getContent}}</textarea> + {% else %} + <p style="text-align: center"> + Binary files cannot be edited. + </p> + {% endif %} <div class="row-fluid"> <div class="span9"> <label for="upload_{{fileid}}" class="inline">Replace with upload:</label> |
