{% if user and user.is_pause %} {% else %} {% if ucs.status == 0 %} {% if perms.bee_django_course.open_ucs %} 开启课件 {% endif %} {% elif ucs.status == 1 %} {#无条件通过课件#} {% if perms.bee_django_course.pass_ucs_super %} 通过课件 {#达到要求后通过课件#} {% elif perms.bee_django_course.pass_ucs %} {% if ucs.pass_check == True %} 通过课件 {% endif %} {% endif %} {% if perms.bee_django_course.close_ucs %} 关闭课件 {% endif %} {% endif %} {% endif %}