info.html 1.92 KB
Newer Older
1
<%! from django.utils.translation import ugettext as _ %>
2 3
<%! from courseware.courses import get_course_info_section %>

4 5
<%inherit file="/main.html" />
<%namespace name='static' file='/static_content.html'/>
6

7
<%block name="pagetitle">${__("{course_number} Course Info").format(course_number=course.display_number_with_default)}</%block>
8

9
<%block name="headextra">
10 11
<%static:css group='style-course-vendor'/>
<%static:css group='style-course'/>
12 13
</%block>

14
<%block name="title"><title>${_("{course_number} Course Info").format(course_number=course.display_number_with_default)}</title></%block>
15 16

<%include file="/dashboard/_dashboard_prompt_midcourse_reverify.html" />
17

18
<%include file="/courseware/course_navigation.html" args="active_page='info'" />
Piotr Mitros committed
19

Kyle Fiedler committed
20 21 22 23 24 25 26 27 28
<%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>

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