{% extends 'dashboard/layout.html' %} {% block title %}{{ _('Edit Profile - Dashboard') }}{% endblock %} {% set active_page = 'profile' %} {% block dashboard_content %}

{{ _('Edit Profile') }}

{{ _('Manage your account information, security, and notification preferences.') }}

{{ _('Account Info') }}

{%- set _upic_raw = user.get('profile_picture') or '' -%} {%- set _upic = _upic_raw if _upic_raw.startswith('/') else ('/static/avatars/' ~ _upic_raw if _upic_raw else '') -%}
{% if _upic %} {{ user.username }} {% else %} {{ user.username[0].upper() }} {% endif %}

{{ _('JPG, PNG, GIF, WebP · Max 2 MB') }}

{{ _('Used to log in. Min 3 characters.') }}

{{ _('How your name appears publicly.') }}

{% if user.get('email_verified') %}{{ _('Verified') }}{% else %}{{ _('Unverified') }}{% endif %}
{% if not user.get('email_verified') %}

{{ _('Your email is not verified.') }}

{% endif %}

{{ _('Max 500 characters.') }}

{{ _('Plan') }}: {{ plan.name if plan else _('Free') }}  ·  {{ _('Member since') }} {{ user.created_at[:10] if user.created_at else '—' }}
{{ _('Two-Factor Auth') }}
{% if user.get('user_totp_enabled') %}{{ _('Enabled') }}{% else %}{{ _('Not enabled') }}{% endif %} {% if not plan or plan.price_monthly == 0 %} · {{ _('Paid only') }}{% endif %}
{{ _('%(name)s Plan', name=plan.name if plan else _('Free')) }}
{% if plan and plan.price_monthly > 0 %}${{ "%.2f"|format(plan.price_monthly) }}/{{ _('month') }}{% else %}{{ _('Upgrade to unlock more features') }}{% endif %}
{% endblock %}