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:
13
templates/snippets/file_encoding.html
Normal file
13
templates/snippets/file_encoding.html
Normal 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 %}
|
Reference in New Issue
Block a user