2025-06-01 12:25:33 -04:00
|
|
|
(text "{% extends \"root.html\" %} {% block head %}")
|
|
|
|
(title
|
|
|
|
(text "Server stats - {{ config.name }}"))
|
|
|
|
|
|
|
|
(text "{% endblock %} {% block body %} {{ macros::nav() }}")
|
|
|
|
(main
|
|
|
|
("class" "flex flex-col gap-2")
|
|
|
|
(div
|
|
|
|
("class" "card-nest w-full")
|
|
|
|
(div
|
|
|
|
("class" "card small flex items-center gap-2")
|
|
|
|
(text "{{ icon \"chart-line\" }}")
|
|
|
|
(span
|
|
|
|
(text "{{ text \"general:link.stats\" }}")))
|
|
|
|
(div
|
|
|
|
("class" "card flex flex-col gap-2")
|
|
|
|
(ul
|
|
|
|
(li
|
|
|
|
(b
|
2025-06-01 20:24:05 -04:00
|
|
|
(text "Active user streams: "))
|
2025-06-01 12:25:33 -04:00
|
|
|
(span
|
|
|
|
(text "{{ active_users }}")))
|
|
|
|
(li
|
|
|
|
(b
|
2025-06-01 20:24:05 -04:00
|
|
|
(text "Active chat subscriptions: "))
|
2025-06-01 12:25:33 -04:00
|
|
|
(span
|
|
|
|
(text "{{ active_users_chats }}")))
|
|
|
|
(li
|
|
|
|
(b
|
2025-06-01 20:24:05 -04:00
|
|
|
(text "Socket tasks: "))
|
2025-06-01 12:25:33 -04:00
|
|
|
(span
|
|
|
|
(text "{{ (active_users_chats + active_users) * 3 }}")))))))
|
|
|
|
|
|
|
|
(text "{% endblock %}")
|