diff --git a/src/judas_server/web/templates/client_details.html b/src/judas_server/web/templates/client_details.html index 2fec335..9f3fd6c 100644 --- a/src/judas_server/web/templates/client_details.html +++ b/src/judas_server/web/templates/client_details.html @@ -1,37 +1,46 @@ - - - - - - Details for client {{ client.id }} - - - +
+

Machine {{ client.id }}

+
+
+
+ +
+

Details for client {{ client.id }}

-

ID: {{ client.id }}

-

IP Address: {{ client.addr[0] }}

-

Port: {{ client.addr[1] }}

+

Last Seen: {{ client.last_seen }}

-

- Initial: -

{{ client.initial_telemetry | tojson(indent=2) }}
-

- +
+
- - + $(".details-sidebar > ul > li > a").click(function (e) { + e.preventDefault(); + const tab = $(this).attr("href").split("=")[1]; + const urlParams = new URLSearchParams(window.location.search); + urlParams.set("tab", tab); + window.history.pushState( + {}, + "", + `${window.location.pathname}?${urlParams}`, + ); + }); + + updateLastSeen(); +