{% comment %} Include template for the Devilry header. It has no external dependencies, and no css classes that does not start with ``devilry_header2``. The number ``2`` referst to the fact that this is the seconds version of the header. The old header was implemented as an ExtJS app, and we use the extra suffix to make sure we do not collide with any lingering CSS. Template context variables ========================== devilry_header2_role Optional. Can be one of: - ``examiner`` - ``subjectadmin`` - ``student`` - ``nodeadmin`` devilry_header2_nonresponsive Optional - defaults to ``False``. If this evaluates to boolean ``True``, we the header is not responsive. This is ONLY for compatibility the old ExtJS UIs. Usage ===== Include as a regular Django template: {% include "devilry_header/header2include.django.html" with devilry_header2_role="examiner" %} How do we make it not crash with anything? ========================================== Simple: EVERYTHING is prefixed with ``devilry_header2``. This includes: - All CSS classes. - Even CSS classes from font-awesome - we set ``@fa-css-prefix: devilry_header2_fa;`` - The template context variables. {% endcomment %} {% load i18n %} {% load static %} {% load url from future %}
{% spaceless %} Devilry {% comment %} The CSS makes all of these be invisible by default, and only shows one depending on the devilry_header2_role_* class set on the top container. {% endcomment %} {# #} {# {% trans "Student" %}#} {# #} {# #} {# {% trans "Examiner" %}#} {# #} {# #} {# {% trans "Subject administrator" %}#} {# #} {# #} {# {% trans "Node administrator" %}#} {# #} {% trans "Student" %} {% trans "Examiner" %} {% trans "Course manager" %} {% trans "Administrator" %} {% endspaceless %}
{% if devilry_header2_extjs %}
{% endif %}
{% spaceless %} {% endspaceless %}
{% if DEVILRY_ENABLE_CELERY %}
{% endif %}