Skip to content

Commit 60abc45

Browse files
committed
Hide correct solution behind <details>
1 parent 908b44e commit 60abc45

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

course/templates/course/flow-page.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,10 @@
388388
<p>{% trans feedback.bulk_feedback|safe %}</p>
389389
{% endif %}
390390
{% if show_answer and correct_answer %}
391-
<p>{{ correct_answer|safe }}</p>
391+
<details>
392+
<summary>Correct answer, click to reveal</summary>
393+
<p>{{ correct_answer|safe }}</p>
394+
</details>
392395
{% endif %}
393396
</div>
394397
{% elif show_answer and correct_answer %}

0 commit comments

Comments
 (0)