Skip to content

Commit d2a8d74

Browse files
committed
answer output
1 parent 1430c52 commit d2a8d74

File tree

1 file changed

+26
-33
lines changed

1 file changed

+26
-33
lines changed

quiz/templates/question.html

Lines changed: 26 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,32 @@
88

99
{% block content %}
1010

11-
{#{% if previous.answers %}#}
12-
{##}
13-
{# <p class="muted"><small>{% trans "The previous question" %}:</small></p>#}
14-
{# <p>{{ previous.previous_question }}</p>#}
15-
{##}
16-
{# {% if previous.previous_outcome and previous.previous_in_time %}#}
17-
{# <div class="alert alert-success">#}
18-
{# {% else %}#}
19-
{# <div class="alert alert-warning">#}
20-
{# {% endif %}#}
21-
{# <p><small>#}
22-
{# {% trans "Your answer was" %} </small>#}
23-
{# <strong>#}
24-
{# {{ previous.previous_outcome|yesno:"correct,incorrect" }}#}
25-
{# </strong>#}
26-
{# </p>#}
27-
{##}
28-
{# {% if not previous.previous_in_time %}#}
29-
{# <p>But, you hit the timeout!</p>#}
30-
{# {% endif %}#}
31-
{##}
32-
{# </div>#}
33-
{##}
34-
{# {% include 'correct_answer.html' %}#}
35-
{##}
36-
{# <p><strong>{% trans "Explanation" %}:</strong></p>#}
37-
{# <div class="well " style="background-color: #fcf8e3;">#}
38-
{# <p>{{ previous.previous_question.explanation }}</p>#}
39-
{# </div>#}
40-
{##}
41-
{# <hr>#}
42-
{##}
43-
{#{% endif %}#}
11+
{% if previous.answers %}
12+
13+
<p class="muted"><small>{% trans "The previous question" %}:</small></p>
14+
<p>{{ previous.previous_question }}</p>
15+
16+
{% if previous.previous_outcome and previous.previous_in_time %}
17+
<div class="alert alert-success">
18+
{% else %}
19+
<div class="alert alert-warning">
20+
{% endif %}
21+
<p><small>
22+
{% trans "Your answer was" %} </small>
23+
<strong>
24+
{{ previous.previous_outcome|yesno:"correct,incorrect" }}
25+
</strong>
26+
</p>
27+
28+
{% if not previous.previous_in_time %}
29+
<p>But, you hit the timeout!</p>
30+
{% endif %}
31+
32+
</div>
33+
34+
<hr>
35+
36+
{% endif %}
4437

4538
<br />
4639

0 commit comments

Comments
 (0)