## mako
<%! import json %>
<%!
from django.utils.translation import ugettext as _
from openedx.core.djangolib.js_utils import (
    dump_js_escaped_json, js_escaped_string
)
%>
<%namespace name='static' file='/static_content.html'/>
<%inherit file="/main.html" />

<%block name="bodyclass">view-teams view-in-course course js</%block>
<%block name="pagetitle">${_("Teams")}</%block>

<%block name="headextra">
<%static:css group='style-course-vendor'/>
<%static:css group='style-course'/>
<%static:css group='style-inline-discussion'/>
<%include file="../discussion/_js_head_dependencies.html" />
</%block>

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

<div class="container">
    <div class="teams-wrapper">
        <main id="main" aria-label="Content" tabindex="-1">
            <section class="teams-content">
            </section>
        </main>
    </div>
</div>

<%block name="js_extra">

<%include file="../discussion/_js_body_dependencies.html" />

<%static:require_module module_name="teams/js/teams_tab_factory" class_name="TeamsTabFactory">
    TeamsTabFactory({
        courseID: '${unicode(course.id) | n, js_escaped_string}',
        topics: ${topics | n, dump_js_escaped_json},
        userInfo: ${user_info | n, dump_js_escaped_json},
        topicUrl: '${topic_url | n, js_escaped_string}',
        topicsUrl: '${topics_url | n, js_escaped_string}',
        teamsUrl: '${teams_url | n, js_escaped_string}',
        teamsDetailUrl: '${teams_detail_url | n, js_escaped_string}',
        teamMembershipsUrl: '${team_memberships_url | n, js_escaped_string}',
        teamMembershipDetailUrl: '${team_membership_detail_url | n, js_escaped_string}',
        myTeamsUrl: '${my_teams_url | n, js_escaped_string}',
        maxTeamSize: ${course.teams_max_size | n, dump_js_escaped_json},
        languages: ${languages | n, dump_js_escaped_json},
        countries: ${countries | n, dump_js_escaped_json},
        teamsBaseUrl: '${teams_base_url | n, js_escaped_string}'
    });
</%static:require_module>
</%block>

<%include file="../discussion/_underscore_templates.html" />
