<%! from django.utils.translation import ugettext as _ %>
<%inherit file="/main.html" />
<%namespace name='static' file='/static_content.html'/>

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

<%block name="title"><title>${_("{course.display_number_with_default} Course Info").format(course=course) | h}</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_wrapper">
    <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>
  </div>
</section>
