{% comment %} Course-scoped subnav — the "Inside this course" rail. On `lg+`: sticky left-rail (16rem) with grouped vertical menu. On `< lg`: collapsible
drawer below the page header. Items are grouped into four sections (Learn / Engage / Reference / Grades) and each carries a leading micro-icon. A section is dropped when it has no visible items for the current role. Usage: {% include "components/course_subnav.html" with course=course can_manage=can_manage enrolment=enrolment active_key="quizzes" %} Args: course required — Course object (must have .slug, .title) can_manage optional bool — exposes instructor-only items (Full gradebook, Grade appeals) enrolment optional Enrolment — exposes learner-only items (My grades, Peer reviews) active_key optional str — which item to mark aria-current="page" mobile_only optional bool — when True, hide the desktop left-rail (used on pages that already have their own dense desktop sidebar — wiki/page, workshop_detail) {% endcomment %} {% load rep_navigation %} {% course_subnav_sections course can_manage|default:False enrolment as subnav_sections %} {% if subnav_sections %} {# Mobile drawer — < lg #}
Inside this course expand
{# Desktop left-rail — lg+ (suppressed when mobile_only) #} {% if not mobile_only %} {% endif %} {% endif %}