From d00d30396cc6a946bd8c38b311a7d7d1fc8c7c92 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 5 Aug 2022 12:17:38 +0100 Subject: [PATCH] . --- physics/templates/physics/exam_start.html | 2 +- physics/templates/physics/exam_take.html | 2 +- physics/templates/physics/exam_take_overview.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/physics/templates/physics/exam_start.html b/physics/templates/physics/exam_start.html index 87b2d245..e113b5cc 100755 --- a/physics/templates/physics/exam_start.html +++ b/physics/templates/physics/exam_start.html @@ -4,7 +4,7 @@

Start exam: {{exam.name}}

- {% if request.user %} + {% if request.user.is_authenticated %} Start Exam {% else %} Enter your CID and passcode in the below boxes.
diff --git a/physics/templates/physics/exam_take.html b/physics/templates/physics/exam_take.html index abb616f3..ba82edc8 100755 --- a/physics/templates/physics/exam_take.html +++ b/physics/templates/physics/exam_take.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% block content %} - {% if request.user %} + {% if request.user.is_authenticated %} User: {{request.user}} {% else %} CID: {{cid}} diff --git a/physics/templates/physics/exam_take_overview.html b/physics/templates/physics/exam_take_overview.html index 4ea60e29..63a2fb04 100644 --- a/physics/templates/physics/exam_take_overview.html +++ b/physics/templates/physics/exam_take_overview.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% block content %} - {% if request.user %} + {% if request.user.is_authenticated %} User: {{request.user}} {% else %} CID: {{cid}} @@ -19,7 +19,7 @@ {{answer_count}} out of {{exam_length}} questions answered. Click to go to question.
{% for question, answer in question_answer_tuples %} - {% if request.user %} + {% if request.user.is_authenticated %} {% else %}