{% extends "base.html" %}
{% from "_header.html" import nav_btns, settings_btn, title_block %}
{% block title %}Log in · Dashboard{% endblock %}
{# Logging in (auth.py, web.login): name + password → a session cookie for a year. Logged in:
who you are + Log out. Without a login everyone sees the household view (read only). #}
{% block page %}
{{ nav_btns() }}
{{ title_block("Log in" if not viewer().name else "Account", "/login") }}
{{ settings_btn() }}
{% set me = viewer() %}
{% if not auth_active() %}
No accounts yet — everyone sees everything. Create the admin account in
Settings ▸ Users.
{% elif me.name %}
Logged in as {{ me.name }}{% if me.kind == "admin" %} · admin{% endif %}.