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

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

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

<%include file="/courseware/course_navigation.html" args="active_page='syllabus'" />
<%! 
  from courseware.courses import get_course_syllabus_section
%>

<section class="container">
  <div class="syllabus">
    <h1> Syllabus </h1>
    % if user.is_authenticated():
    ${get_course_syllabus_section(course, 'syllabus')}
    % else:
    ${get_course_syllabus_section(course, 'guest_syllabus')}
    % endif
  </div>
</section>
