fix: quiz submission page rendering

This commit is contained in:
Jannat Patel
2023-11-22 17:27:42 +05:30
parent 81db6c544d
commit 6f40c357b3
7 changed files with 57 additions and 11 deletions

View File

@@ -7,5 +7,5 @@
</blockquote>
</p>
<div class="more-info">
<a href="{{ batch_link }}">{{ _("Open Batch") }}</a>
<a href="{{ link }}">{{ _("Check Discussion") }}</a>
</div>

View File

@@ -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 %}

View File

@@ -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>`