feat: added support for custom web pages for cohorts

This allows adding custom web pages to each cohort by defining a web
template and attaching it to the cohort.

Issue #271
This commit is contained in:
Anand Chitipothu
2021-12-04 23:47:29 +05:30
parent 22f5508bea
commit a1d0f3948a
8 changed files with 122 additions and 5 deletions

View File

@@ -143,6 +143,7 @@ website_route_rules = [
{"from_route": "/courses/<course>/join", "to_route": "batch/join"},
{"from_route": "/courses/<course>/manage", "to_route": "cohorts"},
{"from_route": "/courses/<course>/cohorts/<cohort>", "to_route": "cohorts/cohort"},
{"from_route": "/courses/<course>/cohorts/<cohort>/<page>", "to_route": "cohorts/cohort"},
{"from_route": "/courses/<course>/subgroups/<cohort>/<subgroup>", "to_route": "cohorts/subgroup", "defaults": {"page": "info"}},
{"from_route": "/courses/<course>/subgroups/<cohort>/<subgroup>/students", "to_route": "cohorts/subgroup", "defaults": {"page": "students"}},
{"from_route": "/courses/<course>/subgroups/<cohort>/<subgroup>/join-requests", "to_route": "cohorts/subgroup", "defaults": {"page": "join-requests"}},