{% extends "base-mobile.html" %} 
{% load i18n %} 
{% load display_functions %} 
{% block extra_scripts %}
		<script type="text/javascript">
		function load(url){
			window.location.href = url + "?username={{ user.username }}&api_key={{ user.key }}";
		}
	</script>
{% endblock extra_scripts %}

{% block content %}
<h2>{% trans "Monitor" %}</h2>
{% if cohorts_list %}
	{% for cohort in cohorts_list %}
		<div class="list clickable" onclick="load('{% url 'oppia_monitor_cohort_progress' cohort.id %}');">{{ cohort.course.title|title_lang:LANGUAGE_CODE }} ({{ cohort.description }} - {{ cohort.no_student_members }} students)</div>
	{% endfor %}
{% else %}
	{% blocktrans %}<p>You are not currently teaching on any courses.</p>{% endblocktrans %}
{% endif %}

{% endblock %}