1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-16 06:03:35 +00:00
seahub/templates/view_file_sf.html
2013-03-25 16:22:10 +08:00

28 lines
939 B
HTML

{% extends 'view_file_base.html' %}
{% load i18n %}
{% block open_local %}{% endblock %}
{% block edit_file %}
{% if user_perm == 'rw' and not err%}
<button data="{{ SITE_ROOT }}repo/{{ repo.id }}/file/edit/?p={{ path }}&file_enc={{file_enc}}" id="edit">{% trans "Edit"%}</button>
{% endif %}
{% endblock %}
{% block file_view %}
{% 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 %}
{% ifnotequal file_content None %}
<div id="sf" class="article">{{ file_content|safe }}</div>
{% endifnotequal %}
{% endblock %}