@memchart(h.NodeMemory.Total-h.NodeMemory.Free-h.NodeMemory.Buffers-h.NodeMemory.Cached, h.NodeMemory.Free,
h.NodeMemory.Buffers, h.NodeMemory.Cached)
}
templ hostButton(hostname string) {
}
// HostConnect is the page that allows us to select a host to get information from
templ HostMain(navBarItems []components.NavItem) {
@layouts.Manager("ClustVirt", "Cluster Manager", navBarItems) {
@hostButton("venus.staur.ca")
@hostButton("earth.staur.ca")
@hostButton("mars.staur.ca")
This is where you can see a system overview of all available hosts
For now, there is just this simple box to choose a host to connect to
and push the button to load the system information via HTMX
}
}
// HostInfo is meant to be an HTMX response
templ HostInfo(h *host.Host) {