{% extends 'base.html' %} {% from '_ui.html' import hub, tile, alert_row %} {% block content %} {% set online = stats.online or {} %} {% set accounts = stats.accounts or {} %} {% set maintenance = info.maintenance or {} %} {{ hub('overview', 'azul ' ~ info.version ~ ', up for ' ~ uptime ~ '.') }} {% if maintenance.active or maintenance.pending %}
{% if maintenance.active %}The server is in maintenance mode.{% else %}Maintenance is coming up in about {{ maintenance.minutes }} minute{{ 's' if maintenance.minutes != 1 else '' }}.{% endif %}
{% endif %}

Right now

{{ tile('/sessions', 'bi-plug-fill', '{:,}'.format(info.sessions or 0), 'sessions open', '{:,}'.format(info.users_online or 0) ~ (' person' if info.users_online == 1 else ' people') ~ ' signed in', tone='hero', wide=True) }} {{ tile('/users', 'bi-people-fill', '{:,}'.format(accounts.total or 0), 'accounts', '{:,}'.format(accounts.new_week or 0) ~ ' new this week', tone=2) }} {{ tile('/users?show=suspended', 'bi-person-fill-x', '{:,}'.format(suspended), 'suspended', ('deleted after ' ~ suspended_days ~ ' days') if suspended_days is not none else 'kept for good', tone=3) }} {{ tile('/circles', 'bi-chat-square-dots-fill', '{:,}'.format(stats.circles or 0), 'circles', 'group chats', tone=4) }} {{ tile('/broadcast#history', 'bi-bell-fill', '{:,}'.format(alerts_count), 'alerts', 'sent since azul started', tone=5) }} {{ tile('/interservice', 'bi-diagram-3-fill', links | length, 'services linked', clients_active ~ ' enrolled', tone=6) }} {% if maintenance.active %} {{ tile('/broadcast#maintenance', 'bi-cone-striped', 'on', 'maintenance', 'the server is down for it', tone=3) }} {% elif maintenance.pending %} {{ tile('/broadcast#maintenance', 'bi-cone-striped', maintenance.minutes ~ ' min', 'maintenance', 'announced to everyone', tone=3) }} {% else %} {{ tile('/broadcast#maintenance', 'bi-cone-striped', 'none', 'maintenance', 'nothing planned', tone=1) }} {% endif %}

the last 24 hours

{% if hourly %} {% set busiest = hourly | map(attribute='value') | max %}
show as a table
{% for h in hourly | reverse %} {% endfor %}
Every hour of the last 24, times in UTC
houractivemost onlinemessages sent
{{ h.label }}{% if h.is_now %} now{% endif %}{{ h.value }}{{ h.peak }}{{ h.messages }}
{% else %}

Nothing counted yet.

{% endif %}

clients

{% if programs %} {% else %}

Nobody is signed in right now.

{% endif %}
active today
{{ '{:,}'.format((stats.active or {}).today or 0) }}
sign-ins today
{{ '{:,}'.format(stats.logins_today or 0) }}
messages today
{{ '{:,}'.format(((stats.messages or {}).today or {}).sent or 0) }}
most online today
{{ '{:,}'.format((stats.peak_today or {}).value or 0) }}

latest alerts

{% if alerts %}

Every alert since azul started

{% else %}

None sent since azul started.

{% endif %}
{% if links %} {% else %}

Nothing is linked over InterService right now. The website needs its own link for accounts, the directory and CrossTalk Beacon.

{% endif %}

listening

{% if info.services %}
{% for service in info.services %}
{{ service.name }}
{{ service.ports | join(', ') }}
{% endfor %}
{% else %}

No IM services are listening (none are turned on in the settings).

{% endif %}

quick jobs

Send an alert Schedule maintenance Enroll a service Who's signed in
{% endblock %}