{% import "partials/course_visibility_toggle.html" as vis with context %} {% import "components/ui/v1.html" as ui_v1 %}
{% for chapter in study.outline %} {% set chapterIndex = loop.index %}
{{ chapterIndex if chapterIndex > 9 else '0' ~ chapterIndex }}
{{ chapter.section.title }} {{ vis.badge(chapter.section) }} {% set sectionSummary = chapter.section.content|default('')|markdown|striptags|problemPreview|replace('\n', ' ')|trim %} {% if sectionSummary %}
{{ sectionSummary|truncate(80, true) }}
{% endif %}
{% if chapter.progress.total %} {{ chapter.progress.completed }}/{{ chapter.progress.total }} {{ _('Practice lessons') }} {% endif %}
{% else %}{{ ui_v1.empty_state(_('No sections yet')) }}{% endfor %}