From 35517a971f3386ea92c764db9561a2b04fb49a6d Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 25 Jan 2021 15:45:47 +0000 Subject: [PATCH] . --- rapids/templates/rapids/rapid_detail.html | 15 +++++++++++++++ rapids/views.py | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/rapids/templates/rapids/rapid_detail.html b/rapids/templates/rapids/rapid_detail.html index ffb52dc9..742d02e9 100755 --- a/rapids/templates/rapids/rapid_detail.html +++ b/rapids/templates/rapids/rapid_detail.html @@ -1,6 +1,21 @@ {% extends 'rapids/base.html' %} {% block content %} + + +{% if exam %} +
+ +{% if previous > -1 %} +Previous question +{% endif %} + This question is part of exam: {{exam.name}} [{{pos}}/{{exam_length}}] +{% if next %} +Next question +{% endif %} +
+{% endif %} + Edit Clone Add Note diff --git a/rapids/views.py b/rapids/views.py index 9a523ee5..53611862 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -1038,7 +1038,7 @@ def exam_question_detail(request, pk, sk): return render( request, - "rapids/question_detail.html", + "rapids/rapid_detail.html", { "question": question, "exam": exam,