{% include 'head.html' %}
{% include 'header.html' %}

Back to admin dashboard

👤 {{ user.username }}

Overview generated {{ now.strftime('%Y-%m-%d %H:%M:%S') }} UTC

{% with messages = get_flashed_messages() %} {% if messages %} {% for message in messages %}

✅ {{ message }}

{% endfor %} {% endif %} {% endwith %}

Account details

User ID{{ user.user_id }}
Username{{ user.username }}
Email{% if user.email %}{{ user.email }}{% else %}Not registered{% endif %}
Status{% if user.suspended %}⛔ Suspended{% else %}✅ Active{% endif %}
Last activity (UTC){% if last_activity %}{{ last_activity.strftime('%Y-%m-%d %H:%M:%S') }}{% else %}Never{% endif %}

Subscription

{% if subscription_active %} ✅ Active until {{ subscription_end.strftime('%Y-%m-%d %H:%M:%S') }} UTC {% else %} ❌ Not active{% if subscription_last_ended %} (last subscription ended {{ subscription_last_ended.strftime('%Y-%m-%d %H:%M:%S') }} UTC){% endif %} {% endif %}

{{ extend_form.hidden_tag() }}

{{ extend_form.days.label }} {{ extend_form.days(size=6) }} {{ extend_form.submit() }}

Extends the subscription starting from now, like a Stripe renewal. Default is the regular subscription period.

{% if subscriptions %}

Subscription history

{% for subscription in subscriptions %} now %} style="font-weight:bold"{% endif %}> {% endfor %}
From (UTC)Until (UTC)Stripe customerStripe subscription
{% if subscription.from_date %}{{ subscription.from_date.strftime('%Y-%m-%d %H:%M') }}{% else %}—{% endif %} {% if subscription.to_date %}{{ subscription.to_date.strftime('%Y-%m-%d %H:%M') }}{% else %}—{% endif %} {% if subscription.stripe_customer_id %}{{ subscription.stripe_customer_id }}{% else %}manual{% endif %} {% if subscription.stripe_subscription_id %}{{ subscription.stripe_subscription_id }}{% else %}manual{% endif %}

Bold rows are currently active.

{% else %}

No subscription records.

{% endif %}

Usage

MetricValue
Tokens consumed (24 h){{ "{:,}".format(tokens_24h) }}
Tokens consumed (7 d){{ "{:,}".format(tokens_7d) }}
Tokens consumed (30 d){{ "{:,}".format(tokens_30d) }}
Tokens consumed (all time){{ "{:,}".format(tokens_all) }}
Weekly fair-use limit{{ "{:,}".format(weekly_token_limit|int) }}
Weekly credits left{{ "{:,}".format(weekly_credits_left) }}

Extra credits buffer

Current buffer balance: {{ "{:,}".format(buffer_balance) }} tokens.

{{ add_credits_form.hidden_tag() }}

{{ add_credits_form.units.label }} {{ add_credits_form.units(size=6) }} {{ add_credits_form.submit() }}

Each unit corresponds to {{ "{:,}".format(credits_per_unit) }} tokens, the same unit that is sold through the store.

{% if buffer_history %}

Buffer history (last {{ buffer_history|length }} entries)

{% for entry in buffer_history %} {% endfor %}
Time (UTC)TokensDescription
{% if entry.time %}{{ entry.time.strftime('%Y-%m-%d %H:%M:%S') }}{% else %}—{% endif %} {{ "{:+,}".format(entry.tokens) }} {% if entry.description %}{{ entry.description }}{% else %}none{% endif %}
{% else %}

No buffer activity.

{% endif %}
{% include 'footer.html' %}