{% extends "base.html" %}{% block title %}{{ t("app.title") }}{% endblock %} {% block wrap_class %}wide{% endblock %} {% block body %}

{{ t("app.title") }}

{{ t("app.your_address") }}
{{ me }}
{{ t("app.fingerprint") }}
{{ fingerprint }}
{{ t("link.title") }}
{{ t("app.link_hint") }}
{% if pending %}

{{ t("app.decide") }}

{{ t("app.pairing_hint") }}

{% for req in pending %}

{{ req.requester }} {{ t("app.fingerprint") }}: {{ req.requester_fingerprint or "?" }}

{% if req.note %}

{{ t("app.note") }}: {{ req.note }}

{% endif %} {% if req.offer %}

{{ t("app.they_offer") }}: {% if req.offer.sessions %}{{ t("app.they_offer_some") }} {% for name in req.offer.sessions %}{{ name }}{% endfor %} {% else %}{{ t("app.they_offer_all") }}{% endif %} {% if req.offer.trusted %}{{ t("app.they_offer_trusted") }}{% endif %}

{% endif %} {% if req.asks %} {% if req.proposed %}

{{ t("app.they_proposed") }}

{% endif %}
{% for name in req.mine %} {% if req.mine %}

{{ t("app.limit_yours") }} {% for name in req.mine %}{{ name }}{% endfor %}

{% endif %}
{% for name in req.theirs %} {% if req.theirs %}

{{ t("app.limit_peers") }} {% for name in req.theirs %}{{ name }}{% endfor %}

{% endif %}

{{ t("app.limit_hint") }}

{% if req.already_in %}

{{ t("app.already_in") }}

{% else %} {% endif %} {% else %}

{{ t("app.asks_nothing") }}

{% endif %}

{% endfor %} {% endif %}

{{ t("app.my_sessions") }}

{{ t("app.my_sessions_hint") }}

{% if sessions %}
{% for s in sessions %} {% endfor %}
{{ t("app.sessions") }}{{ t("app.state") }} {{ t("app.who_may_write") }}{{ t("app.your_address") }}
{{ s.session }} {% if s.label %}
{{ s.label }}{% endif %}
{{ t("app.online") if s.online else t("app.offline") }} {% if not s.online and s.ago %}
{{ t("app.last_seen") }} {{ s.ago }}{% endif %}
{% for r in s.readers %} {{ r.peer }}{% if r.trusted %} {{ t("app.trusted_on") }}{% endif %}
{% endfor %} {% if not s.readers %}{{ t("app.nobody_outside") }}{% endif %}
{{ s.endpoint }}
{% else %}

{{ t("app.no_sessions") }}

{% endif %}

{{ t("app.contacts") }}

{% if peers %}
{% for p in peers %} {% endfor %}
{{ t("app.peer") }} {{ t("app.they_to_me") }} {{ t("app.me_to_them") }} {{ t("app.sessions") }} {{ t("app.expires") }}
{{ p.peer }}{% if p.self %}
{{ t("app.own_account") }}{% endif %}
{% if p.inbound %} {{ p.inbound.my_sessions | join(", ") }} {% if not p.self %}
{% endif %} {% else %}—{% endif %}
{% if p.outbound %}{{ p.outbound.peer_sessions | join(", ") }} {% if p.outbound.trusted %} {{ t("app.they_trust_me") }}{% endif %} {% else %}—{% endif %} {% for ep in p.endpoints %} {{ ep.session }}{% if ep.online %} {% endif %}
{% endfor %} {% if not p.endpoints %}{{ t("app.no_endpoints") }}{% endif %}
{% set exp = (p.inbound.expires_at if p.inbound else None) or (p.outbound.expires_at if p.outbound else None) %} {{ exp[:10] if exp else t("app.no_expiry") }} {% for g in [p.inbound, p.outbound] %} {% if g and g.grant_id and not p.self %}
{% endif %} {% endfor %}

{{ t("app.contacts_hint") }}

{% else %}

{{ t("app.no_contacts") }}

{% endif %} {% if sent %}

{{ t("app.sent_title") }}

{{ t("app.sent_hint") }}

{% for req in sent %} {% endfor %}
{{ t("app.sent_to") }}{{ t("app.note") }}
{{ req.target }} {{ req.note or "" }} {{ t("app.sent_waiting") }}
{% endif %}

{{ t("app.ask_access") }}

{{ t("app.target_hint") }}

{% if sessions %}

{{ t("app.asking_from_hint") }}

{% endif %} {% for s in sessions %}
{{ t("app.give_legend") }}

{{ t("app.give_hint") }}

{{ t("app.want_legend") }}

{{ t("app.want_hint") }}

{{ t("app.connect") }}

{{ t("app.connect_hint") }}

claude mcp add --scope user --transport http aim {{ mcp_url }}

{{ t("app.connect_then") }} {{ t("app.guide") }}

{% if has_email %}
{% endif %}
{% endblock %}