{% from "templates/wiki/macros/buttons.html" import render_icon %}
{% from "templates/wiki/macros/space.html" import render_space_mark %}
{#- The navbar ends the chrome, so its bottom rule is the one hairline running
across the window — the sidebar's own border meets it instead of starting
in mid-air. -#}
{#- Space logo + switcher. Lives here rather than in the sidebar's own
header because the navbar now spans the full window: the sidebar starts
below the tab row, so it has no top-of-window strip to put a logo in.
Width matches the sidebar (w-72 minus this row's px-6) so the logo stays
visually aligned with the tree below it. -#}
{% set has_switcher = wiki_spaces_for_switcher and wiki_spaces_for_switcher|length > 1 %}