{% block topbar %}
REXVA CBT
{% if g.user %} {% if g.user.role == 'admin' %}
Dashboard
Users
All exams
{% elif g.user.role == 'teacher' %}
My exams
New exam
{% else %}
My exams
{% endif %} {% endif %}
{% if g.user %}
{{ g.user.full_name }}
{{ g.user.role }}
Password
Sign Out
{% endif %}
{% endblock %}
{% with msgs = get_flashed_messages(with_categories=true) %} {% if msgs %}
{% for cat, m in msgs %}
{{ m }}
{% endfor %}
{% endif %} {% endwith %} {% block content %}{% endblock %}
{% block footer %}{% include "_footer.html" %}{% endblock %} {% block scripts %}{% endblock %}