{% set bg_color="red" if not user.is_active or expire_days<3 or (user.usage_limit_GB*0.8 < user.current_usage_GB) else "blue" %}

{{_('user.home.usage.title')}}

{% if not user.enable %} {{_("Disable")}} {% else %} {{user.current_usage_GB|round(3)}}GB {{_('user.home.usage.from')}} {{user.usage_limit_GB}}GB {{_('user.home.usage.monthly') if user.monthly else '' }}
{{_('user.home.usage.expire')}} {{expire_rel}}
{% if reset_day %}
{{_('Reset Usage Time:')}} {{reset_day}} {{_('days')}}
{% endif %} {% endif %} {% if not user.is_active %} {{_("User is inactive")}} {% if (user.devices|length)>user.max_ips: %}
{{_("Too many Connected IPs")}} {% endif %} {% endif %}
{% if hconfig(ConfigEnum.telegram_bot_token) and g.bot %} {{_('View in Telegram')}} {% else %} {{_('user.home.usage.details')}} {% endif %}
{% if hconfig(ConfigEnum.branding_freetext) %}
{% if hconfig(ConfigEnum.branding_title) %}

{{hconfig(ConfigEnum.branding_title) or _('user.home.branding.title')}}

{% endif %}

{{hconfig(ConfigEnum.branding_freetext)|safe}}

{% if hconfig(ConfigEnum.branding_site) %} {{_('user.home.branding.linktitle')}} {% endif %}
{% endif %}

{{_('QR code')}}

{{_('user.home.qr-code.description')}}