{% extends "base.html" %} {% block title %}My exams{% endblock %} {% block content %}

Hello, {{ g.user.full_name.split(' ')[0] }}

Student ID {{ g.user.username }}{% if g.user.class_name %} · {{ g.user.class_name }}{% endif %}

{% if running %}

Exam in progress

{% for it in running %}
{{ it.e.title }}
Your clock is still running.
Continue exam
{% endfor %}
{% endif %}

Available exams

{% for it in available %}{% set e = it.e %}
{{ e.title }} {% if e.subject %}{{ e.subject }}{% endif %}
{{ e.nq }} questions · {{ e.duration_min }} minutes · {{ e.teacher_name }} {% if it.state == 'upcoming' %} · opens {{ e.opens_at|dt }}{% elif e.closes_at %} · closes {{ e.closes_at|dt }}{% endif %}
{% if it.state == 'open' %}View & start {% elif it.state == 'upcoming' %}Not open yet {% else %}Closed{% endif %}
{% else %}

Nothing to write right now. Your teacher will publish an exam when it is ready.

{% endfor %}
{% if done %}

Completed

{% for it in done %} {% endfor %}
ExamSubmittedResult
{{ it.e.title }}{{ it.a.submitted_at|dt }} {% if it.e.show_result and it.pct is not none %}{{ it.a.score|num }} / {{ it.a.total|num }} ({{ '%.0f'|format(it.pct) }}%){% else %}Submitted{% endif %} Open
{% endif %} {% endblock %}