{#- The administration's first page: the site at a glance (its accounts, its sign-ins, its communities, its files), what it depends on and whether it answers (`admin/panels/health.py`), the accounts and the sign-ins over time, what was made lately; beside it, the settings that matter and who signed in last. Overrides Abilian Core's page; drawn in `mockups/templates/admin.html`, which has no charts. -#} {% extends "admin/_ads.html" %} {% set site = site_figures() %} {% set tiles = [ (accounts.all, _("accounts"), ngettext("%(num)d never signed in", "%(num)d never signed in", accounts.never_signed_in)), (accounts.sign_ins, _("sign-ins in 30 days"), ngettext("%(num)d person", "%(num)d people", accounts.people)), (site.communities, _("communities"), ngettext("%(num)d active this week", "%(num)d active this week", site.active_communities)), (site.bytes | filesize, _("of files"), ngettext("%(num)d document", "%(num)d documents", site.documents)), ] %} {% set periods = [("today", _("Today")), ("this_week", _("7 days")), ("this_month", _("30 days"))] %} {% set measures = [("active_users", _("Active accounts")), ("new_members", _("New accounts")), ("new_documents", _("New documents")), ("new_messages", _("New messages"))] %} {% block page_title %}{{ _("Overview") }} ยท {{ _("Administration") }}{% endblock %} {% block heading %}{{ _("Overview") }}{% endblock %} {% block content %}
{{ _("Accounts registered, active and new, month by month; the figures of today are at the top of the page.") }}
{{ _("The people who signed in, by day, week or month; this month's are counted at the top of the page.") }}
| {{ _("Measure") }} | {% for _period, label in periods %}{{ label }} | {% endfor %}
|---|---|
| {{ label }} | {% for period, _label in periods %}{{ stats[period][measure] }} | {% endfor %}