info.html 1.34 KB
Newer Older
Piotr Mitros committed
1
<%inherit file="main.html" />
2 3 4 5 6 7
<%namespace name='static' file='static_content.html'/>

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

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

Kyle Fiedler committed
13 14 15 16 17 18 19 20 21
<%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
22
<section class="container">
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
  <div class="info-wrapper">
    % if user.is_authenticated():
    <section class="updates">
      <h1>Course Updates &amp; News</h1>
      ${get_course_info_section(course, 'updates')}
    </section>
    <section aria-label="Handout Navigation" class="handouts">
      <h1>Course Handouts</h1>
      ${get_course_info_section(course, 'handouts')}
    </section>
    % else:
    <section class="updates">
      <h1>Course Updates &amp; News</h1>
      ${get_course_info_section(course, 'guest_updates')}
    </section>
    <section aria-label="Handout Navigation" class="handouts">
      <h1>Course Handouts</h1>
      ${get_course_info_section(course, 'guest_handouts')}
    </section>
    % endif
  </div>
Piotr Mitros committed
44
</section>