git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
delete previous files when updating
[phorkie.git]
/
data
/
templates
/
edit-file.htm
diff --git
a/data/templates/edit-file.htm
b/data/templates/edit-file.htm
index 53c2c014f4b6dc9e427a9b07faae5adae7d7bb59..a1993c5b2e79c7d4e1a543121c3c7681e4aa9f8c 100644
(file)
--- 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>
<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>
<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>
<div class="row-fluid">
<div class="span9">
<label for="upload_{{fileid}}" class="inline">Replace with upload:</label>