{#- 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 %}
{% for value, label, note in tiles %}
{{ value }}{{ label }}{{ note }}
{% endfor %}

{{ _("What the site depends on") }}

    {% for check in health %}
  • {{ check.name }}{{ check.note }} {% if check.ok %}{{ _("Running") }} {% else %}{{ _("To look at") }}{% endif %}
  • {% endfor %}

{{ _("Accounts") }}

{{ _("Accounts registered, active and new, month by month; the figures of today are at the top of the page.") }}

{{ _("Unique connections") }}

{{ _("The people who signed in, by day, week or month; this month's are counted at the top of the page.") }}

{{ _("Recent activity") }}

{% for _period, label in periods %}{% endfor %} {% for measure, label in measures %} {% for period, _label in periods %}{% endfor %} {% endfor %}
{{ _("Measure") }}{{ label }}
{{ label }}{{ stats[period][measure] }}
{#- Data, not code: a JSON block is never executed. charts.js reads it by id. -#} {% endblock %} {#- uPlot's own stylesheet first, so that the theme's rules for the charts win. -#} {% block stylesheet %}{{ vite_asset("src/charts-styles.css") }}{{ super() }}{% endblock %} {% block scripts %}{{ super() }}{{ vite_asset("src/charts.js") }}{% endblock %}