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

from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration
%>

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

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


% if show_enroll_banner:
  <div class="wrapper-msg urgency-low" id="failed-verification-banner">
    <div class="msg msg-reverify is-dismissable">
      <div class="msg-content">
        <h2 class="title">${_("You are not enrolled yet")}</h2>
        <div class="copy">
          <p class='enroll-message'>
            ${_(u"You are not currently enrolled in this course. {link_start}Sign up now!{link_end}").format(
            link_start=u"<a href={}>".format(url_to_enroll),
            link_end=u"</a>"
            )}
          </p>
        </div>
      </div>
    </div>
  </div>
% endif

<%include file="/courseware/course_navigation.html" args="active_page='info'" />

<%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>

<%block name="bodyclass">view-in-course view-course-info ${course.css_class or ''}</%block>
<section class="container">
  <div class="info-wrapper">
    % if user.is_authenticated():
    <section class="updates">
      % if studio_url is not None and masquerade and masquerade.role == 'staff':
        <div class="wrap-instructor-info studio-view">
          <a class="instructor-info-action" href="${studio_url}">
            ${_("View Updates in Studio")}
          </a>
        </div>
      % endif

      <h1>${_("Course Updates &amp; News")}</h1>
      ${get_course_info_section(request, course, 'updates')}
    </section>
    <section aria-label="${_('Handout Navigation')}" class="handouts">
      % if SelfPacedConfiguration.current().enable_course_home_improvements:
        <h1>${_("Important Course Dates")}</h1>
        ${get_course_date_summary(course, user)}
      % endif

      <h1>${_(course.info_sidebar_name)}</h1>
      ${get_course_info_section(request, course, 'handouts')}
    </section>
    % else:
    <section class="updates">
      <h1>${_("Course Updates &amp; News")}</h1>
      ${get_course_info_section(request, course, 'guest_updates')}
    </section>
    <section aria-label="${_('Handout Navigation')}" class="handouts">
      <h1>${_("Course Handouts")}</h1>
      ${get_course_info_section(request, course, 'guest_handouts')}
    </section>
    % endif
  </div>
</section>
<commit_msg>Remove check for course home page improvements.<commit_after><%inherit file="../main.html" />
<%namespace name='static' file='../static_content.html'/>
<%!
from django.utils.translation import ugettext as _
from courseware.courses import get_course_info_section, get_course_date_summary

from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration
%>

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

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


% if show_enroll_banner:
  <div class="wrapper-msg urgency-low" id="failed-verification-banner">
    <div class="msg msg-reverify is-dismissable">
      <div class="msg-content">
        <h2 class="title">${_("You are not enrolled yet")}</h2>
        <div class="copy">
          <p class='enroll-message'>
            ${_(u"You are not currently enrolled in this course. {link_start}Sign up now!{link_end}").format(
            link_start=u"<a href={}>".format(url_to_enroll),
            link_end=u"</a>"
            )}
          </p>
        </div>
      </div>
    </div>
  </div>
% endif

<%include file="/courseware/course_navigation.html" args="active_page='info'" />

<%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>

<%block name="bodyclass">view-in-course view-course-info ${course.css_class or ''}</%block>
<section class="container">
  <div class="info-wrapper">
    % if user.is_authenticated():
    <section class="updates">
      % if studio_url is not None and masquerade and masquerade.role == 'staff':
        <div class="wrap-instructor-info studio-view">
          <a class="instructor-info-action" href="${studio_url}">
            ${_("View Updates in Studio")}
          </a>
        </div>
      % endif

      <h1>${_("Course Updates &amp; News")}</h1>
      ${get_course_info_section(request, course, 'updates')}
    </section>
    <section aria-label="${_('Handout Navigation')}" class="handouts">
      % if False:
        <h1>${_("Important Course Dates")}</h1>
        ${get_course_date_summary(course, user)}
      % endif

      <h1>${_(course.info_sidebar_name)}</h1>
      ${get_course_info_section(request, course, 'handouts')}
    </section>
    % else:
    <section class="updates">
      <h1>${_("Course Updates &amp; News")}</h1>
      ${get_course_info_section(request, course, 'guest_updates')}
    </section>
    <section aria-label="${_('Handout Navigation')}" class="handouts">
      <h1>${_("Course Handouts")}</h1>
      ${get_course_info_section(request, course, 'guest_handouts')}
    </section>
    % endif
  </div>
</section>

{'fraction_non_alphanumeric': 0.1840829292760408, 'fraction_numerical': 0.004347099147299783, 'mean_word_length': 3.8319870759289176, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5917646', 'n_tokens_mistral': 2017, 'n_tokens_neox': 1962, 'n_words': 362}