info.html 1.53 KB
Newer Older
1
<%inherit file="/main.html" />
Arjun Singh committed
2
<%block name="bodyclass">${course.css_class}</%block>
3
<%namespace name='static' file='/static_content.html'/>
4 5 6 7 8

<%block name="headextra">
  <%static:css group='course'/>
</%block>

9 10
<%block name="title"><title>${course.number} Course Info</title></%block>

11
<%include file="/courseware/course_navigation.html" args="active_page='info'" />
12 13 14
<%! 
  from courseware.courses import get_course_info_section
%>
Piotr Mitros committed
15

Kyle Fiedler committed
16 17 18 19 20 21 22 23 24
<%block name="js_extra">
  <script type="text/javascript" src="${static.url('js/jquery.treeview.js')}"></script>
  <script type="text/javascript" charset="utf-8">
$(document).ready(function(){
    $(".handouts").treeview({collapsed:true, unique:true/*, cookieId: "treeview-book-nav", persist: "cookie"*/});
    });
  </script>
</%block>

Matthew Mongeau committed
25
<section class="container">
26 27 28 29
  <div class="info-wrapper">
    % if user.is_authenticated():
    <section class="updates">
      <h1>Course Updates &amp; News</h1>
30
      ${get_course_info_section(request, course, 'updates')}
31 32
    </section>
    <section aria-label="Handout Navigation" class="handouts">
33
      <h1>${course.info_sidebar_name}</h1>
34
      ${get_course_info_section(request, course, 'handouts')}
35 36 37 38
    </section>
    % else:
    <section class="updates">
      <h1>Course Updates &amp; News</h1>
39
      ${get_course_info_section(request, course, 'guest_updates')}
40 41 42
    </section>
    <section aria-label="Handout Navigation" class="handouts">
      <h1>Course Handouts</h1>
43
      ${get_course_info_section(request, course, 'guest_handouts')}
44 45 46
    </section>
    % endif
  </div>
Piotr Mitros committed
47
</section>