{% extends "bee_django_course_simple/user_base.html" %} {% load bee_django_course_simple_filter %} {% load staticfiles %} {% load bootstrap3 %} {% block styles %} {% endblock %} {% block content %} {# 根据状态判断是否显示section额外标题#}

{{ user_section.section.title }} {% if user_section.is_pass %}{{ user_section.section.extra_title|default:"" }}{% endif %}

全部课程 {% if next_user_section and user_section.is_pass %} 下一课 {% elif next_user_section %} 下一课 {% endif %}
{% for user_part in user_section.userpart_set.all %}
{# 根据状态判断是否显示part额外标题#}
{% if user_part.part.is_video_type %} {% if user_part.is_close %} {% include "bee_django_course_simple/part/_custom_user_part_image_and_title.html" %} {% else %} {% include "bee_django_course_simple/part/_custom_user_part_image_and_title.html" %} {% endif %} {% elif user_part.part.is_question_type %} {% if user_part.is_close %} {% include "bee_django_course_simple/part/_custom_user_part_image_and_title.html" %} {% else %} {% include "bee_django_course_simple/part/_custom_user_part_image_and_title.html" %} {% endif %} {% endif %}
{% endfor %}
{% endblock content %} {% block scripts %} {% endblock scripts %}