{% if user.is_staff and current_class %}
You are currently teaching group {{current_class.number}}.
The registration code for this class is:
{{current_class.ticket}}
Please distribute this code to everyone in class. It will register their attendance and unlock the in-class assignments.
{% endif %}
{% if user.is_staff and not current_class %}
You are currently not teaching any classes. Start a new class by entering a class number (e.g., PSY-01).
{% endif %}
{% if not user.is_staff and current_class %}
Your attendance to the class {{current_class.number}} has been registered.
{% endif %}
{% if not user.is_staff and not current_class %}
Please enter a valid registration code to register your attendance. You will receive this code in class.
{% endif %}
{% if user.is_staff and perms.autodidact.change_session %}
{% endif %}