{% extends "base.html" %} {% from "_partials/icon.html" import icon %} {% from "_partials/forms.html" import error_slot, invalid %} {% from "_partials/city_field.html" import city_field with context %} {% from "_partials/subscribe_form.html" import subscribe_form with context %} {#- Кабинет подписчика (design-system/1astro/pages/account.md §4). Только для вошедшего (cookie сессии). user — accounts.User; sub — статус подписки (key, badge, text, tone); can_manage — портал провайдера (Stripe); can_cancel — отмена кнопкой на сайте (WayForPay); renew — {date}: отменённую подписку WayForPay можно оформить заново с новой картой, новый месяц начнётся date; billing_open — оплата подключена; subscriber — billing.entitlement; notice — итог (text, ok); birth — {summary, values, errors, time_choice, open}; city — {summary, tz, values, errors, open}; calendar — {links: {https, webcal, google} у подписчика или None, no_birth}; letters — {daily, weekly}; subscribe — {values, errors}; delete_errors — ошибка удаления. -#} {% block title %}{{ t("account.title") }}{% endblock %} {% block preload %} {% if cyrillic %} {% endif %} {% endblock %} {% block head %} {% endblock %} {% block content %}

{{ t("account.h1") }}

{%- if notice %}
{{- icon("check-circle" if notice.ok else "warning-circle", "notice__icon") }}

{{ notice.text }}

{%- endif %} {#- ---------- Подписка ---------- #}
{%- if can_manage %} {%- endif %} {%- if can_cancel %} {%- endif %} {%- if renew and billing_open %} {%- endif %} {%- if sub.key in ("none", "ended") %} {%- endif %}
{#- ---------- Лента календаря (этап F8, design-system/1astro/pages/account.md §8) ---------- #}
{%- if calendar.links %} {% set links = calendar.links %} {%- if calendar.no_birth %} {%- endif %} {%- else %} {%- endif %}
{#- ---------- Данные рождения ---------- #}
{#- ---------- Город для ежедневных писем ---------- #}
{#- ---------- Письма (этап F9, design-system/1astro/pages/account.md §9) ---------- #}
{%- if not subscriber %} {%- endif %}
{#- ---------- Удаление ---------- #}
{% endblock %}