From 834d91e84d6dcb6bcc757c714553f69d9687af34 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 19 Jan 2026 12:21:42 +0000 Subject: [PATCH] Enhance layout of answer options with improved spacing and conditional category display --- physics/templates/physics/exam_scores_user.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/physics/templates/physics/exam_scores_user.html b/physics/templates/physics/exam_scores_user.html index e99df202..cc3c90af 100644 --- a/physics/templates/physics/exam_scores_user.html +++ b/physics/templates/physics/exam_scores_user.html @@ -26,8 +26,8 @@
    {% for q, a, score, correct_answer in ans %} -
  1. -
    {{ q|safe }}
    +
  2. +
    {{ q|safe }}
    {% if exam.publish_results %}
    Correct answer: {{ correct_answer|safe }}
    @@ -55,10 +55,14 @@
-
- Category: {{ question.category }} - — View - Edit +
+
+ View + {% if request.user.is_staff %} + — Category: {{ question.category }} + Edit + {% endif %} +