</div><!-- /course_header -->
<div id="note_container">
- {% if note.file_type == 'pdf' %}
+ {% if pdf %}
<!-- Add pdf.js -->
<div class="row">
<div class="twelve columns">
id="noteframe"
src="/pdfview/{{ note.id }}"
onload="autoResize('noteframe')"> </iframe>
- <!--src="/pdfview?file={{ "http://"|urlencode }}{{ hostname|urlencode }}{{ note.note_file.url|urlencode }}" -->
</div>
</div> <!-- .row -->
+
{% comment %}
+ # TODO: embed and pass the url with this included when we fix the css integration issues
{% include 'partial/pdfembed.html' %}
{% endcomment %}
- {% else %} {# note.filetype == 'pdf' #}
+ {% else %} {# if pdf #}
<div class="row">
<div class="eight columns centered body_copy">
{% endcomment %}
<script>
- //var DEFAULT_URL = '{{ note.note_file.url }}';
- var DEFAULT_URL = '{{ object.note_file.url }}';
+ var DEFAULT_URL = '{{ pdf_path }}'
</script>
<script type="text/javascript" src="{{ STATIC_URL }}vendor/js/pdf.js"></script>
<script src="{{ STATIC_URL }}vendor/js/viewer.js"></script>