{% extends "baseTemplate/index.html" %} {% load static %} {% comment %} Per-reseller usage against allocation. Rendered server-side: the figures are drawn from four apps and one query pass here is cheaper — and easier to authorise — than an AJAX endpoint per resource. {% endcomment %} {% block title %}Reseller center{% endblock %} {% block styles %} {% endblock %} {% block content %}

Reseller center

What each reseller has handed out against what its plan allows. A reseller with no plan is uncapped — the panel-wide limits still apply.

All accounts
{% if not resellers %}
No reseller accounts are visible to you. {% if canCreateUser %}
Create one by assigning an ACL that grants createNewUser.
{% endif %}
{% endif %}
{% for reseller in resellers %}

{{ reseller.userName }}

{{ reseller.fullName }} · {{ reseller.email }}
{{ reseller.planName }} {% if reseller.allowCreateReseller %}
may create sub-resellers
{% endif %}
{% for resource in reseller.resources %}
{{ resource.label }} {{ resource.used }}{% if resource.unit %} {{ resource.unit }}{% endif %} {% if resource.unlimited %} / unlimited {% else %} / {{ resource.limit }}{% if resource.unit %} {{ resource.unit }}{% endif %} ({{ resource.percent }}%) {% endif %}
{% if resource.unlimited %}
{% else %}
{% endif %}
{% endfor %}
{{ reseller.customers }} customer record(s) {% if canChangeACL %} Modify account {% endif %}
{% endfor %}

Disk and bandwidth figures come from the cached quota table, refreshed on a schedule rather than on page load — walking /home per request would be far too slow. Website, database and customer counts are live.

{% endblock %}