From 774a1b8c8ae39c3a4e41f1f135ec214386f3e7b2 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 19 Jan 2026 12:23:45 +0000 Subject: [PATCH] Refactor question display in exam scores user template to include badges as links for authenticated and unauthenticated users --- .../templates/physics/exam_scores_user.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/physics/templates/physics/exam_scores_user.html b/physics/templates/physics/exam_scores_user.html index e23c95c8..7836b5ae 100644 --- a/physics/templates/physics/exam_scores_user.html +++ b/physics/templates/physics/exam_scores_user.html @@ -11,17 +11,18 @@
  • - {{ forloop.counter }} + {% if request.user.is_authenticated %} + + {{ forloop.counter }} + + {% else %} + + {{ forloop.counter }} + + {% endif %}
    -
    - {% if request.user.is_authenticated %} - Question {{forloop.counter}} - {% else %} - Question {{forloop.counter}} - {% endif %} - - {{ question.stem|safe }} -
    +
    {{ question.stem|safe }}