mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-24 21:07:17 +00:00
[file encoding] improved code & modified for file_edit & text_diff
This commit is contained in:
@@ -5,17 +5,7 @@ content of files that can be viewed online shows here.
|
||||
For details please refer to 'snippets/file_content_js.html'.
|
||||
{% endcomment %}
|
||||
<div id="file-view">
|
||||
{% if filetype == 'Text' or filetype == 'Sf' or filetype == 'Markdown' %}
|
||||
<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 file_enc == enc %} selected="selected" {% endif %}>{% if enc == 'auto'%}{% trans "auto detect" %}{% else %}{{ enc }}{% endif %}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% include 'snippets/file_encoding.html' %}
|
||||
{% if not err %}
|
||||
{% if filetype == 'Text' or filetype == 'Sf' or filetype == 'Markdown' %}
|
||||
{% ifnotequal file_content None %}
|
||||
|
Reference in New Issue
Block a user