feat: added custom pages at subgroup level

This commit is contained in:
Anand Chitipothu
2021-12-09 01:17:03 +05:30
parent b83918c2aa
commit 943c8eabbf
5 changed files with 44 additions and 8 deletions

View File

@@ -24,7 +24,7 @@
<ul class="nav nav-tabs">
{% set num_subgroups = cohort.get_subgroups() | length %}
{{ render_navitem("Subgroups", "", page=page, count=num_subgroups) }}
{% for p in cohort.pages %}
{% for p in cohort.get_pages(scope="Cohort") %}
{{ render_navitem(p.title, p.slug, page=page) }}
{% endfor %}
</ul>