From c786019af15f7e0e344b505e842f151e41406315 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 16 Oct 2023 09:52:57 +0100 Subject: [PATCH] show results if admin --- anatomy/templates/anatomy/exam_scores_user.html | 2 +- physics/templates/physics/exam_scores_user.html | 2 +- rad/static/css/anatomy.css | 2 +- rapids/templates/rapids/exam_scores_user.html | 2 +- templates/user_score_header.html | 3 +++ 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/anatomy/templates/anatomy/exam_scores_user.html b/anatomy/templates/anatomy/exam_scores_user.html index 0dbe2421..a5f8df75 100644 --- a/anatomy/templates/anatomy/exam_scores_user.html +++ b/anatomy/templates/anatomy/exam_scores_user.html @@ -22,7 +22,7 @@
{{ans}}
- {% if exam.publish_results %} + {% if exam.publish_results or view_all_results%} {{score}} {% endif %} diff --git a/physics/templates/physics/exam_scores_user.html b/physics/templates/physics/exam_scores_user.html index c5cc2d1b..9a0684d6 100644 --- a/physics/templates/physics/exam_scores_user.html +++ b/physics/templates/physics/exam_scores_user.html @@ -12,7 +12,7 @@ {{q|safe}}: {% if exam.publish_results %}Correct answer: {{correct_answer|safe}}{% endif %}
{{a}} - {% if exam.publish_results %} + {% if exam.publish_results or view_all_results%} (Score: {{score}}) diff --git a/rad/static/css/anatomy.css b/rad/static/css/anatomy.css index de7e4f96..1442bb24 100644 --- a/rad/static/css/anatomy.css +++ b/rad/static/css/anatomy.css @@ -712,7 +712,7 @@ input { text-decoration: underline; } -.date { +.date,.small-gray { font-size: smaller; opacity: 50%; } diff --git a/rapids/templates/rapids/exam_scores_user.html b/rapids/templates/rapids/exam_scores_user.html index 2157b7fa..71d2375d 100644 --- a/rapids/templates/rapids/exam_scores_user.html +++ b/rapids/templates/rapids/exam_scores_user.html @@ -25,7 +25,7 @@
{{ans}}
- {% if exam.publish_results %} + {% if exam.publish_results or view_all_results%} {{score}} {% endif %} diff --git a/templates/user_score_header.html b/templates/user_score_header.html index c52556ae..d0e84b97 100644 --- a/templates/user_score_header.html +++ b/templates/user_score_header.html @@ -15,6 +15,9 @@ {% else %} Results are NOT published. {% endif %} + +

view_all_results == True

+ {% else %} {% if not exam.publish_results %}