Mkae columns sortabel agian, check hbc version, provide modile html pages

This commit is contained in:
Andreas Wrede
2026-04-12 12:53:00 -04:00
parent 24b0e362fb
commit 19f7c8312e
12 changed files with 282 additions and 51 deletions
+2
View File
@@ -248,6 +248,7 @@ async def start(
is_secure = request.secure or forwarded_proto.lower() == "https"
scheme = "wss" if is_secure else "ws"
heartbeat_ws_url = f"{scheme}://{host}/ws"
from hbd import __version__ as hbd_version
tmpl = env.get_template("live.html")
body = tmpl.render(
title="Heartbeat",
@@ -255,6 +256,7 @@ async def start(
request=request,
heartbeat_ws_url=heartbeat_ws_url,
extra_scripts=extra_scripts,
hbd_version=hbd_version,
hosts=[
hbdclass.Host.hosts[h].stateinfo() for h in sorted(hbdclass.Host.hosts)
],