feat: added a page to list cohorts of a course

- added a page /courses/<course>/manage that lists the active cohorts
- only accessible to mentors and staff
- also added a "manage the course" button on course page for mentors/staff

Issue #271
This commit is contained in:
Anand Chitipothu
2021-11-29 17:33:45 +05:30
parent 7cd57cadb2
commit 102fa9c0a8
7 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
{% extends "templates/base.html" %}
{% macro render_nav(nav) %}
<div class="breadcrumb">
{% for link in nav %}
<a class="dark-links" href="{{ link.href }}">{{ link.title }}</a>
{% if not loop.last %}
<img class="ml-1 mr-1" src="/assets/school/icons/chevron-right.svg">
{% endif %}
{% endfor %}
</div>
{% endmacro %}
{% block title %}Cohorts{% endblock %}
{% block head_include %}
<meta name="description" content="Cohorts" />
<meta name="keywords" content="Cohorts" />
{% endblock %}
{% block content %}
<div class="common-page-style">
<div class='container'>
{{ render_nav(nav | default([])) }}
{% block page_content %}
Hello, world!
{% endblock %}
</div>
</div>
{% endblock %}