fix: quiz submission page rendering
This commit is contained in:
@@ -7,5 +7,5 @@
|
||||
</blockquote>
|
||||
</p>
|
||||
<div class="more-info">
|
||||
<a href="{{ batch_link }}">{{ _("Open Batch") }}</a>
|
||||
<a href="{{ link }}">{{ _("Check Discussion") }}</a>
|
||||
</div>
|
||||
@@ -10,9 +10,6 @@
|
||||
<li>
|
||||
{{ _("You will have to get {0}% correct answers in order to pass the quiz.").format(quiz.passing_percentage) }}
|
||||
</li>
|
||||
<li>
|
||||
{{ _("Without passing the quiz you won't be able to complete the lesson.") }}
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if quiz.max_attempts %}
|
||||
|
||||
@@ -134,6 +134,9 @@ const quiz_summary = (e = undefined) => {
|
||||
$(".quiz-footer span").addClass("hide");
|
||||
$("#quiz-form").prepend(
|
||||
`<div class="summary bold-heading text-center">
|
||||
${__("You got")} ${data.message.percentage}% ${__("correct answers")}
|
||||
</div>
|
||||
<div class="summary bold-heading text-center mt-2">
|
||||
${__("Your score is")} ${data.message.score}
|
||||
${__("out of")} ${data.message.score_out_of}
|
||||
</div>`
|
||||
|
||||
Reference in New Issue
Block a user