1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 11:51:27 +00:00

[file encoding] improved code & modified for file_edit & text_diff

This commit is contained in:
llj
2013-02-27 15:19:24 +08:00
parent 3a485e4a73
commit 15d9d69c66
7 changed files with 88 additions and 49 deletions

View File

@@ -0,0 +1,13 @@
{% load i18n %}
{% if filetype == 'Text' or filetype == 'Sf' or filetype == 'Markdown' %}
{% if encoding != None %}
<div id="file-enc-cont">
<label for="file-enc">{% trans "Encoding:" %}</label>
<select id="file-enc">
{% for enc in file_encoding_list %}
<option value="{{ enc }}" {% if encoding and encoding == enc %} selected="selected" {% endif %}>{% if enc == 'auto'%}{% trans "auto detect" %}{% else %}{{ enc }}{% endif %}</option>
{% endfor %}
</select>
</div>
{% endif %}
{% endif %}