mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-17 14:37:58 +00:00
26 lines
853 B
HTML
26 lines
853 B
HTML
|
{%comment%}
|
||
|
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 not err %}
|
||
|
{% if filetype == 'Text' or filetype == 'Sf' %}
|
||
|
{% ifnotequal file_content None %}
|
||
|
{% if filetype == 'Text' %}
|
||
|
<textarea id="docu-view" class="vh">{{ file_content|escape }}</textarea>
|
||
|
{% else %}
|
||
|
<div id="sf" class="article">{{ file_content|safe }}</div>
|
||
|
{% endif %}
|
||
|
{% endifnotequal %}
|
||
|
{% endif %}
|
||
|
|
||
|
{% if filetype == 'Image' %}
|
||
|
<img src="{{ raw_path }}" alt="{{ u_filename}}" id="image-view" />
|
||
|
{% endif %}
|
||
|
{% else %}
|
||
|
<div id="file-view-tip">
|
||
|
<p class="error">{{ err }}</p>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
</div>
|