tetratto/crates/app/src/public/html/mod/stats.lisp
2025-06-24 13:18:52 -04:00

43 lines
1.6 KiB
Common Lisp

(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
(text "Active user streams: "))
(span
(text "{{ active_users }}")))
(li
(b
(text "Active chat subscriptions: "))
(span
(text "{{ active_users_chats }}")))
(li
(b
(text "Socket tasks: "))
(span
(text "{{ (active_users_chats + active_users) * 3 }}"))))
(hr)
(ul
(li (b (text "Users: ")) (span (text "{{ table_users }}")))
(li (b (text "IP bans: ")) (span (text "{{ table_ipbans }}")))
(li (b (text "Invite codes: ")) (span (text "{{ table_invite_codes }}")))
(li (b (text "Posts: ")) (span (text "{{ table_posts }}")))
(li (b (text "Uploads: ")) (span (text "{{ table_uploads }}")))
(li (b (text "Communities: ")) (span (text "{{ table_communities }}")))))))
(text "{% endblock %}")