{% load vantage i18n %} {% comment %} The end of the header, as somebody arranged it. The order, what is switched off and what has been added all come from vantage.topbar.build_topbar, which resolves the stored row against this request's permissions on every render. This template only draws what it is handed — it makes no decision about what belongs here, because a template that also decides is a second place for the answer to live. {% endcomment %} {% for slot in topbar.slots %} {% if slot.kind == "search" %} {% include "vantage/partials/palette.html" %} {% elif slot.kind == "theme" %} {% elif slot.kind == "environment" %} {% comment %} The banner moved into the bar. Same text, same destructive tint, a tenth of the height — which is the trade somebody makes deliberately on a panel where the environment never changes and the strip had stopped being read. {% endcomment %} {{ slot.label }} {% elif slot.kind == "user" %} {% if user.is_authenticated %} {% include "vantage/partials/usermenu.html" %} {% endif %} {% elif slot.kind == "link" %} {% if slot.icon %}{% icon slot.icon %}{% endif %} {{ slot.label }} {% if slot.external %} {% comment %} Same pattern as the sidebar's external items: aria-label on a plain has no role to attach to and is widely ignored, so the warning is real text that happens to be visually hidden. {% endcomment %} {% translate "(opens in a new tab)" %} {% endif %} {% endif %} {% endfor %}