{% extends "base.html" %}
{% load i18n %}
{% load display_functions %}

{% block content %}

<h2><a href="{% url 'oppia_recent_activity' course.id %}">{{ course.title|title_lang:LANGUAGE_CODE }}</a> > {% trans 'cohorts' %}</h2>

{% if cohorts %}
	<ul>
	{% for cohort in cohorts %}
		<li>
			<a href="{% url 'oppia.views.cohort_edit' cohort.course.id cohort.id %}">{{ cohort.description }}</a>
			({{ cohort.no_teacher_members }} {% trans 'teachers' %},
			{{ cohort.no_student_members }} {% trans 'students' %}) 
		</li> 
	{% endfor %}
	</ul>
{% else %}
	<p>{% trans 'No cohorts' %}</p>
	
{% endif %}

<p><a href="{% url 'oppia_cohort_add' course.id %}">{% trans 'Add a cohort' %}</a></p>

{% endblock %}