'Renders the teams dashboard, which is shown on the "Teams" tab.
Raises a 404 if the course specified by course_id does not exist, the
user is not registered for the course, or the teams feature is not enabled.'

def get(self, request, course_id):

    course_key = CourseKey.from_string(course_id)
    course = get_course_with_access(request.user, 'load', course_key)
    if (not is_feature_enabled(course)):
        raise Http404
    if ((not CourseEnrollment.is_enrolled(request.user, course.id)) and (not has_access(request.user, 'staff', course, course.id))):
        raise Http404
    user = request.user
    sort_order = 'name'
    topics = get_alphabetical_topics(course)
    topics_data = self._serialize_and_paginate(TopicsPagination, topics, request, BulkTeamCountTopicSerializer, {'course_id': course.id})
    topics_data['sort_order'] = sort_order
    user = request.user
    user_teams = CourseTeam.objects.filter(membership__user=user, course_id=course.id)
    user_teams_data = self._serialize_and_paginate(MyTeamsPagination, user_teams, request, CourseTeamSerializer, {'expand': ('user',)})
    context = {'course': course, 'topics': topics_data, 'user_info': {'username': user.username, 'privileged': has_discussion_privileges(user, course_key), 'staff': bool(has_access(user, 'staff', course_key)), 'teams': user_teams_data}, 'topic_url': reverse('topics_detail', kwargs={'topic_id': 'topic_id', 'course_id': str(course_id)}, request=request), 'topics_url': reverse('topics_list', request=request), 'teams_url': reverse('teams_list', request=request), 'teams_detail_url': reverse('teams_detail', args=['team_id']), 'team_memberships_url': reverse('team_membership_list', request=request), 'my_teams_url': reverse('teams_list', request=request), 'team_membership_detail_url': reverse('team_membership_detail', args=['team_id', user.username]), 'languages': [[lang[0], _(lang[1])] for lang in settings.ALL_LANGUAGES], 'countries': list(countries), 'disable_courseware_js': True, 'teams_base_url': reverse('teams_dashboard', request=request, kwargs={'course_id': course_id})}
    return render_to_response('teams/teams.html', context)
