2012-07-31 16:48:55 +08:00
|
|
|
{% if filetype == 'Text' %}
|
2012-09-13 16:36:23 +08:00
|
|
|
<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 %}
|