{% import "components/ui/v1.html" as ui_v1 %} {% extends "layout/basic.html" %} {% block content %}
{% call ui_v1.page_header(chapter.title, cpdoc.title ~ ' · ' ~ vpdoc.version) %} {% if chapter.hidden %}{{ ui_v1.badge(_('已隐藏'), 'warning') }}{% endif %} {{ _('返回章节目录') }} {% if canManage %}{{ _('编辑章') }}{% endif %} {% if canCopy %}{{ _('复制本章') }}{% endif %} {% endcall %} {% if chapter.content or chapter.lecturePids.length %}

{{ _('章节内容') }}

{% if chapter.content %}
{{ chapter.content|markdown|safe }}
{% endif %} {% if chapter.lecturePids.length %}
{{ _('讲义') }}: {% for pid in chapter.lecturePids %}P{{ pid }}{% endfor %}
{% endif %}
{% endif %} {% include 'components/course_package_lessons.html' %}
{% endblock %}