{% extends "../base.html" %} {% block title %}{{ _("Statistics") }}{% end block %} {% block content %}

{{ _("Statistics") }}

{% set total_accounts = len(backend.accounts) %}

{{ total_accounts }}

{{ _("Total Accounts") }}

{% set t = now - datetime.timedelta(days=7) %}

{{ backend.accounts.count_created_after(t) }}

{{ _("Created This Week") }}

{% set t = now - datetime.timedelta(days=30) %}

{{ backend.accounts.count_created_after(t) }}

{{ _("Created This Month") }}
{% set pending_registrations = backend.accounts.pending_registrations %} {% if pending_registrations %}

{{ pending_registrations }}

{{ _("Pending Registrations") }}
{% end %}

{{ _("By Country") }}

    {% set countries = backend.accounts.countries %} {% for country in sorted(countries, key=lambda c: countries[c], reverse=True) %}
  • {{ country.apolitical_name }} {{ "%.1f%%" % (countries[country] * 100 / total_accounts) }}
  • {% end %}
{% end block %}