From d5da5bd8aa89f015a67f1f772b139165075a83e3 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Sat, 4 Dec 2021 07:25:15 +0530 Subject: [PATCH] feat: allow all mentors to see the cohort status Issue #271 --- school/www/cohorts/cohort.html | 17 +++++++++++++++-- school/www/cohorts/cohort.py | 26 ++++++++++++-------------- school/www/cohorts/index.py | 5 +++-- 3 files changed, 30 insertions(+), 18 deletions(-) diff --git a/school/www/cohorts/cohort.html b/school/www/cohorts/cohort.html index e8c17abd..07fc9193 100644 --- a/school/www/cohorts/cohort.html +++ b/school/www/cohorts/cohort.html @@ -13,13 +13,26 @@ | {{ stats.join_requests }} join requests

-
Subgroups
+{% if is_mentor %} +
+ {% set sg = mentor.get_subgroup() %} +

You are a mentor of {{sg.title}} subgroup.

+

Visit Your Subgroup →

+
+ +{% endif %} + +
All Subgroups