1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00
Files
seahub/templates/snippets/file_view_js.html

17 lines
647 B
HTML
Raw Normal View History

2012-07-31 16:48:55 +08:00
{% if filetype == 'Text' %}
<script type="text/javascript" src="{{MEDIA_URL}}codemirror/codemirror.js"></script>
2012-07-31 16:48:55 +08:00
{% endif %}
{% if filetype == 'PDF' %}
2012-09-21 17:16:07 +08:00
{% if pdf_use_flash %}
<script type="text/javascript" src="{{MEDIA_URL}}flexpaper/js/flexpaper_flash.js"></script>
{% else %}
<script type="text/javascript" src="{{MEDIA_URL}}js/pdf.js"></script>
{% endif %}
2012-07-31 16:48:55 +08:00
{% endif %}
2012-09-13 14:01:32 +08:00
{% if filetype == 'Document' %}
<script type="text/javascript" src="{{MEDIA_URL}}flexpaper/js/flexpaper_flash.js"></script>
{% endif %}
2012-07-31 16:48:55 +08:00
{% if filetype == 'Markdown' %}
<script type="text/javascript" src="{{MEDIA_URL}}js/showdown.js"></script>
{% endif %}