tetratto/crates/app/src/public/html/mod/stats.lisp

44 lines
1.6 KiB
Common Lisp
Raw Normal View History

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 }}"))))
(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 }}")))))))
2025-06-01 12:25:33 -04:00
(text "{% endblock %}")