Merge branch 'master' of github.com:FinalsClub/karmaworld
[oweals/karmaworld.git] / karmaworld / templates / notes / note_detail.html
1 {% extends "base.html" %}
2 {% load url from future %}
3
4 {% block pagestyle %}
5   <link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/note_course_pages.css">
6 {% endblock %}
7
8 {% block pagescripts %}
9   <script src="{{ STATIC_URL }}js/note-iframe.js" ></script>
10 {% endblock %}
11
12 {% block content %}
13   <section id="note_content">
14
15     <div id="course_header"> 
16       <div class="row">
17         <div id="breadcrumbs" class="ten columns offset-by-one">
18           <a href="/">Home</a> &gt; 
19           <a href="{{ note.course.get_absolute_url }}">{{ note.course.name }}</a> &gt;
20           <a href="{{ note.get_absolute_url }}"> {{ note.name }} </a>
21         </div><!-- /course_subhead -->
22       </div>
23
24       <div class="row">
25         <div id="course_name" class="twelve columns">
26           {{ note.name }}
27         </div><!-- /note_name -->
28       </div>
29
30       <div class="row">
31         <div class="ten columns offset-by-one">
32           <hr/>
33         </div>
34       </div>
35
36     </div><!-- /course_header -->
37     <div id="note_container">
38
39       <div class="row">
40         <div class="eight columns centered body_copy">
41
42           <div class="note-text">
43             <iframe style="border:none; width:100%;" id="noteframe" src="/raw/{{ note.id }}" onload="autoResize('noteframe')">
44             </iframe>
45           </div> <!-- .note-text -->
46           <div class="note-error" style="display:none">
47             This document's content is currently unavailable. It's likely the document is still being processed. Please try again later.
48           </div>
49
50         </div><!-- /body_copy -->
51       </div>
52
53     </div><!-- /note_container -->
54
55
56   </section><!--/note_content-->
57 {% endblock %}