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="note_header" class="hero_gradient_bar">
17 <div id="note_back_to_course" class="twelve columns">
18 <a href="{{ note.course.get_absolute_url }}">
19 {# TODO: style this not like a link #}
20 <img src="{{ STATIC_URL }}img/search_arrow_left.png" alt="search_arrow_left" width="5" height="10" /> back to {{ note.course.name }}
27 <div id="note_name" class="twelve columns">
29 </div><!-- /note_name -->
33 <!-- disabiling viewCount and liked count -->
35 <div id="note_status" class="twelve columns">
36 <div class="activity_details_status">
37 So far, <span class="activity_details_status_number">{{ note.numUpVotes }}</span> people have completely fallen in love with with these notes. <span class="activity_details_status_secondary_number">{{ note.viewCount }}</span> people have viewed them.
38 </div><!-- /activity_details_status -->
39 </div><!-- /note_status -->
46 <!-- uploaded by style -->
48 <div id="note_author" class="twelve columns">
53 {{ note.owner.get_profile.get_name }}
55 </div><!-- /note_author -->
60 <div id="note_actions" class="three columns centered">
61 {% if not owns_file %}
63 <div class="six column thank" {% if has_voted %} style="display:none" {% endif %} data-id={{ file.id }}>
64 <img src="{{ STATIC_URL }}img/note_thank.png" alt="note_thank" width="34" height="34" />
66 <div class="six column flag" {% if has_voted %} style="display:none" {% endif %} data-id={{ file.id }}>
67 <img src="{{ STATIC_URL }}img/note_flag.png" alt="note_flag" width="25" height="35" />
69 <div class="twelve column voted_message" data-id={{ file.id }} {% if not has_voted %} style="display:none" {% endif %}>
71 <span id="thanked_or_flagged">
74 {% elif not flaggable %}
80 <!-- disabling downloads for now -->
81 <div class="four column">
82 <img src="{{ STATIC_URL }}img/note_download.png" alt="note_download" width="51" height="36" />
85 {% endif %} <!-- not owns_file -->
86 </div><!-- /note_actions -->
89 </div><!-- /note_header -->
92 <div id="note_container">
95 <div class="eight columns centered body_copy">
100 <p>{{ note.desc }}</p>
105 <div class="note-text">
106 <iframe style="border:none; width:100%;" id="noteframe" src="/raw/{{ note.id }}" onload="autoResize('noteframe')">
108 </div> <!-- .note-text -->
109 <div class="note-error" style="display:none">
110 This document's content is currently unavailable. It's likely the document is still being processed. Please try again later.
113 </div><!-- /body_copy -->
116 </div><!-- /note_container -->
119 </section><!--/note_content-->