{% extends "base.html" %} {% import "macros.html" as macros %} {# The unit selector (guarded further down by the same two flags) is the only other thing on the page naming the unit, so the heading and title repeat it only when the selector isn't there to. One flag drives both `{% if %}`s below and the selector's own guard, so they can't diverge. #} {% set unit_selector_shown = config.BUNITS and config.BUNITS_LOGIN_SELECTOR %} {% set show_unit_name = current_unit() and not unit_selector_shown %} {% block title %}Log in - ePortal{% if show_unit_name %} [{{ current_unit().title }}]{% endif %}{% endblock %} {# No chrome: there is no navigation to bypass, and the sign-in form is the page. The landmark is inherited, so it cannot drift from the rest of the app. #} {% block chrome %}{% endblock %} {# Inside the card, not above it: the shared region renders full width at the top of the page, 10em clear of the form the error belongs to. #} {% block messages %}{% endblock %} {% block body %}
Sign In to KernelCare.ePortal{% if show_unit_name %} [{{ current_unit().title }}]{% endif %}