- added community.bundle.less file to create css bundle - removed the obsolete build.json in favor of new build system - updated the paths in the books - removed the imported urls from css files (the new build system doesn't support that) - removed obsolete lms.css
19 lines
585 B
HTML
19 lines
585 B
HTML
{% from "www/macros/livecode.html" import LiveCodeEditorJS, LiveCodeEditor with context %}
|
|
|
|
<div class="exercise">
|
|
<h2>{{ exercise.title }}</h2>
|
|
<div class="exercise-description">{{frappe.utils.md_to_html(exercise.description)}}</div>
|
|
|
|
{% if exercise.image %}
|
|
<div class="exercise-image">{{exercise.image}}</div>
|
|
{% endif %}
|
|
|
|
{% set submission = exercise.get_user_submission() %}
|
|
|
|
{{ LiveCodeEditor(exercise.name,
|
|
code=exercise.code,
|
|
reset_code=exercise.code,
|
|
is_exercise=True,
|
|
last_submitted=submission and submission.creation) }}
|
|
</div>
|