diff --git a/physics/templates/physics/exam_take_overview.html b/physics/templates/physics/exam_take_overview.html index 93f98170..8780ee71 100644 --- a/physics/templates/physics/exam_take_overview.html +++ b/physics/templates/physics/exam_take_overview.html @@ -2,11 +2,11 @@ {% block content %} - {% if not cid %} - User: {{request.user}} - {% else %} - CID: {{cid}} - {% endif %} + {% if not cid %} + User: {{request.user}} + {% else %} + CID: {{cid}} + {% endif %} {% include "exam_clock.html" %} @@ -14,7 +14,7 @@ {% if exam.publish_results %} {% elif cid_user_exam.completed %} {% endif %} - +
{{answer_count}} out of {{exam_length}} questions answered. Unanswered questions are shown in red. Click any tile to jump to that question.
{% for question, answer, flagged in question_answer_tuples %} {% comment %} Use an anchor styled as a button rather than nesting button inside anchor (invalid HTML). Keep link targets unchanged. {% endcomment %} - {% if not cid %} + {% if not cid %} - {{forloop.counter}}{% if answer and answer.answer %}: {{answer.answer}}{% endif %} + {{forloop.counter}}{% if answer and answer.answer %}: {{answer.answer}}{% endif %} + {% if flagged %}{% endif %} {% else %} @@ -57,15 +58,16 @@ class="overview-question-btn btn btn-outline-secondary {% if flagged %}flagged{% endif %}" aria-label="Go to question {{ forloop.counter }}" {% if not answer %}title="You have not answered this question" aria-current="false"{% endif %}> - {{forloop.counter}}{% if answer and answer.answer %}: {{answer.answer}}{% endif %} + {{forloop.counter}}{% if answer and answer.answer %}: {{answer.answer}}{% endif %} + {% if flagged %}{% endif %} {% endif %} {% endfor %}
- Start time: {{cid_user_exam.start_time}}
- Last change time: {{cid_user_exam.end_time}}
- Completed: {{cid_user_exam.completed}} + Start time: {{cid_user_exam.start_time}}
+ Last change time: {{cid_user_exam.end_time}}
+ Completed: {{cid_user_exam.completed}}
{% if not cid_user_exam.completed %} @@ -97,69 +99,71 @@ {% endblock %} {% block css %} - + .overview-question-btn { font-size: .95rem } + } + {% endblock %}