1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 00:00:00 +00:00

added pdf view with pdf.js

This commit is contained in:
llj
2013-01-09 15:32:44 +08:00
parent aa7741adf4
commit 96e57c6d1a
30 changed files with 37764 additions and 12 deletions

View File

@@ -1,9 +1,12 @@
{% if filetype == 'Text' %}
<script type="text/javascript" src="{{MEDIA_URL}}codemirror/codemirror-2.36.js"></script>
{% endif %}
{% if filetype == 'Document' or filetype == 'PDF' %}
{% if filetype == 'Document' or filetype == 'PDF' and not use_pdfjs %}
<script type="text/javascript" src="{{MEDIA_URL}}flexpaper/js/flexpaper_flash.js"></script>
{% endif %}
{% if filetype == 'PDF' and use_pdfjs %}
<script type="text/javascript" src="{{MEDIA_URL}}js/pdf.js"></script>
{% endif %}
{% if filetype == 'Markdown' %}
<script type="text/javascript" src="{{MEDIA_URL}}js/showdown.js"></script>
{% endif %}