{% extends "www/cohorts/base.html" %} {% block title %} {{ _("Manage") }} {{ course.title }} {% endblock %} {% block page_content %}
{{ cohort.title }}

{{ frappe.db.count("Cohort Subgroup", {"cohort": cohort.name}) }} {{ _("Subgroups") }} | {{ frappe.db.count("Cohort Mentor", {"cohort": cohort.name}) }} {{ _("Mentors") }} | {{ frappe.db.count("LMS Enrollment", {"cohort": cohort.name}) }} {{ _("Students") }} | {{ frappe.db.count("Cohort Join Request", {"cohort": cohort.name}) }} {{ _("Join Requests") }}

{% if is_mentor %} {% set sg = mentor.get_subgroup() %}
{{ _("You are a mentor of {0} subgroup.").format(frappe.bold(sg.title)) }}
{% endif %}
{% if not page %} {{ render_subgroups() }} {% else %} {{ render_page(page) }} {% endif %}
{% endblock %} {% macro render_subgroups() %} {% endmacro %} {% macro render_navitem(title, link, page, count=-1) %} {% endmacro %}