## mako
<%! import json %>
<%! from django.utils.translation import ugettext as _ %>
<%! from openedx.core.lib.json_utils import EscapedEdxJSONEncoder %>
<%namespace name='static' file='/static_content.html'/>
<%inherit file="/main.html" />

<%block name="bodyclass">view-teams is-in-course course</%block>
<%block name="pagetitle">${_("Teams")}</%block>
<%block name="headextra">
<%static:css group='style-course'/>
</%block>

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

<div class="container">
    <div class="teams-wrapper">
        <section class="teams-content">
        </section>
    </div>
</div>

<%block name="js_extra">
<%static:require_module module_name="teams/js/teams_tab_factory" class_name="TeamsTabFactory">
    new TeamsTabFactory({
        topics: ${ json.dumps(topics, cls=EscapedEdxJSONEncoder) },
        topic_url: '${ topic_url }',
        topics_url: '${ topics_url }',
        teams_url: '${ teams_url }',
        maxTeamSize: ${ course.teams_max_size },
        course_id: '${ unicode(course.id) }'
    });
</%static:require_module>
</%block>
