{{ user.username }} {% if user_is_traveling %} ✈ {% endif %}
  • Settings
  • API Keys
  • {% for item in themis_user_menu_items %}
  • {% if item.icon %} {% endif %} {{ item.label }}
  • {% endfor %}
{% comment %} The logout form sits outside the menu and the button joins it by id. A
wrapping the button would be the menu item daisyUI styles, leaving the button a shrink-to-fit grid cell in a full-width row: most of the row is then dead to the pointer, and a press that misses only moves focus — :focus-within stops matching and the menu closes with the user still signed in. As the row itself, the button takes both the whole hit area and the focus, so the first press always lands. No script involved. {% endcomment %} {% csrf_token %}