diff --git a/longs/templates/longs/mark.html b/longs/templates/longs/mark.html index d0c2d978..7c465cca 100644 --- a/longs/templates/longs/mark.html +++ b/longs/templates/longs/mark.html @@ -8,8 +8,10 @@

Marking question {{question_details.current}} of {{question_details.total}}

- {% if not user_answers %} + {% if not unmarked_count %} + {% else %} + {% endif %} Answers: diff --git a/longs/views.py b/longs/views.py index edd2ab21..3291aa15 100755 --- a/longs/views.py +++ b/longs/views.py @@ -731,6 +731,8 @@ def mark(request, pk, sk): user_answers = question.cid_user_answers.filter(exam__id=pk) + unmarked_count = user_answers.filter(score=CidUserAnswer.ScoreOptions.UNMARKED).count() + return render( request, "longs/mark.html", @@ -739,6 +741,7 @@ def mark(request, pk, sk): "question": question, "question_details": question_details, "user_answers": user_answers, + "unmarked_count": unmarked_count, }, )