diff --git a/community/www/courses/topic.html b/community/www/courses/topic.html index 040b5a1c..0f3280cc 100644 --- a/community/www/courses/topic.html +++ b/community/www/courses/topic.html @@ -1,4 +1,5 @@ {% extends "templates/base.html" %} +{% from "www/macros/livecode.html" import LiveCodeEditor %} {% block title %}{{topic.title}} ({{course.title}}){% endblock %} {% block head_include %} @@ -43,7 +44,7 @@ {% if s.type == "text" %} {{ render_section_text(s) }} {% elif s.type == "code" %} - {{ render_section_code(s) }} + {{ LiveCodeEditor(s.name, s.code) }} {% else %}