<%! from django.utils.translation import ugettext as _ %>
<%! from django.template.defaultfilters import escapejs %>

<%inherit file="../main.html" />
<%namespace name='static' file='../static_content.html'/>
<%block name="bodyclass">discussion</%block>
<%block name="title"><title>${_("Discussion - {course_number}").format(course_number=course.display_number_with_default) | h}</title></%block>

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

<%include file="_js_head_dependencies.html" />
</%block>

<%block name="js_extra">
<%include file="_js_body_dependencies.html" />
<%static:js group='discussion'/>
</%block>

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

<section class="container">
  <div class="course-wrapper">
    <section aria-label="${_('User Profile')}" class="user-profile">
      <nav>

        <article class="sidebar-module discussion-sidebar">
          <%include file="_user_profile.html" />
        </article>

      </nav>
    </section>

    <section class="course-content container discussion-user-threads" data-user-id="${django_user.id | h}" data-course-id="${course.id | h}" data-threads="${threads}" data-user-info="${user_info}">
        <h2>${_("Active Threads")}</h2>
    </section>
  </div>
</section>

<script type="text/javascript">
  var $$profiled_user_id = "${django_user.id | escapejs}";
  var $$course_id = "${course.id | escapejs}";
</script>
<%include file="_underscore_templates.html" />
