package view import ( "git.staur.ca/stobbsm/clustvirt/lib/host" bf "github.com/labstack/gommon/bytes" "git.staur.ca/stobbsm/clustvirt/view/components" "git.staur.ca/stobbsm/clustvirt/view/layouts" ) // MemChart get's the memory pi chart from the host templ MemChart(h *host.Host) {
@templ.Raw(h.ChartMemory())
} // 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) {

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) {

{ h.HostName }

@MemChart(h) }