{% extends "_frame.html" %} {# enter.html — the sign-in that names no card. Rendered by routes/entry.py (Jinja2, autoescape ON) and served through nginx's public `/auth/` location. Extends _frame.html, so it wears the same stylesheet and baked palette as the card prompt. Template variables (contract with routes/entry.py), besides the frame's `theme_blocks` and `app_name`: shape: "form" | "cards" | "none", required Which page this is. `form` asks for a username and a password; `cards` lists every terminal the login just unlocked; `none` says no card admits this account. username: str Prefill for the username input on a re-rendered form — the bounded name the attempt submitted. Empty on a first prompt. Unused by the other shapes. error: str | None A message to show above the form. One fixed string per refusal kind, so an unknown name and a wrong password read identically. enter_path: str, required Where the form posts. Comes from the route module's own constant. cards: list[{"name", "label", "href", "own"}] The unlocked terminals, own cards first. `label` is the title shown: the app's `name:` for a shared app card, the roster name for a person's. `href` is the terminal's mount; `own` is false for a card shared with this person, which is tagged. next: str Where a successful sign-in returns the browser, already validated by the route; empty when the sign-in goes to the opened terminal. Carried as a hidden field so the form's POST keeps it. #} {% block title %}Log in{% endblock %} {% block style %} .login-cards { margin: 0; padding: 0; list-style: none; } .login-cards li { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.6rem 0; border-top: 1px solid var(--border-default, #2c3235); } .login-cards li:first-child { border-top: none; } .login-cards a { color: var(--color-accent, #6e9fff); font-size: 1rem; overflow-wrap: anywhere; } .login-tag { font-size: 0.75rem; color: var(--text-muted, #6e6e77); } {%- endblock %} {% block card %}
{%- if app_name %}

{{ app_name|e }}

{%- endif %}

OSPREY

{%- if shape == "cards" %}

Choose a terminal

You are logged in to each of these.

{%- elif shape == "none" %}

No terminal for this account

Ask your administrator to add you to a card.

{%- else %}

Log in to your terminal

{%- if error %} {%- endif %}
{%- if next %} {%- endif %}
{%- endif %} ← Back
{% endblock %}