1 {% extends "base.html" %}
2 {% load url from future %}
5 <link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/note_course_pages.css">
8 {% block pagescripts %}
9 <script src="{{ STATIC_URL }}js/note-iframe.js" ></script>
13 <section id="note_content">
15 <div id="course_header">
17 <div id="breadcrumbs" class="ten columns offset-by-one">
18 <a href="/">Home</a> >
19 <a href="{{ note.course.get_absolute_url }}">{{ note.course.name }}</a> >
20 <a href="{{ note.get_absolute_url }}"> {{ note.name }} </a>
21 </div><!-- /course_subhead -->
25 <div id="course_name" class="twelve columns">
27 </div><!-- /note_name -->
31 <div class="ten columns offset-by-one">
36 </div><!-- /course_header -->
37 <div id="note_container">
41 <div class="twelve columns">
43 style="border:none; width:100%; min-height: 700px; margins:auto"
45 src="/pdfview/{{ note.id }}"
46 onload="autoResize('noteframe')"> </iframe>
51 # TODO: embed and pass the url with this included when we fix the css integration issues
52 {% include 'partial/pdfembed.html' %}
55 {% else %} {# if pdf #}
58 <div class="eight columns centered body_copy">
60 <div class="note-text">
61 <iframe style="border:none; width:100%;" id="noteframe" src="/raw/{{ note.id }}" onload="autoResize('noteframe')"> </iframe>
62 </div> <!-- .note-text -->
64 {% else %} {# note.html #}
65 <div class="note-error">
66 This document's content is currently unavailable. Please try again later.
68 {% endif %} {# note.html #}
70 {% endif %} {# note.filetype == 'pdf' #}
72 </div><!-- /body_copy -->
75 </div><!-- /note_container -->
78 </section><!--/note_content-->