feat: allow all mentors to see the cohort status

Issue #271
This commit is contained in:
Anand Chitipothu
2021-12-04 07:25:15 +05:30
parent d84302682e
commit d5da5bd8aa
3 changed files with 30 additions and 18 deletions

View File

@@ -13,13 +13,26 @@
| {{ stats.join_requests }} join requests
</p>
<h5>Subgroups</h5>
{% if is_mentor %}
<div class="alert alert-info">
{% set sg = mentor.get_subgroup() %}
<p>You are a mentor of <b>{{sg.title}}</b> subgroup.</p>
<p><a href="{{sg.get_url()}}" class="btn btn-primary">Visit Your Subgroup &rarr;</a></p>
</div>
{% endif %}
<h5>All Subgroups</h5>
<ul class="list-group">
{% for sg in cohort.get_subgroups(include_counts=True) %}
<li class="list-group-item">
<div>
{% if is_admin %}
<a class="subgroup-title" href="/courses/{{course.name}}/subgroups/{{cohort.slug}}/{{sg.slug}}">{{sg.title}}</a>
</div>
{% else %}
<span class="subgroup-title">{{sg.title}}</span>
{% endif %}
</div>
<div style="font-size: 0.8em;">
{{sg.num_mentors}} Mentors
|