package templates import ( "converge/pkg/models" "time" _ "time/tzdata" ) templ Sessions(state *models.State, loc *time.Location) {

sessions

if state != nil { @State(state, loc) } else { Loading... }
} templ State(state *models.State, location *time.Location) {

agents

if len(state.Agents) == 0 {

-

} else { for _, agent := range state.Agents { }
rendez-vous id start time expiry time username host os shell
{agent.PublicId} {agent.StartTime.In(location).Format(time.DateTime)} {agent.ExpiryTime.In(location).Format(time.DateTime)} {agent.EnvironmentInfo.Username} {agent.EnvironmentInfo.Hostname} {agent.EnvironmentInfo.OS} {agent.EnvironmentInfo.Shell}
}

clients

if len(state.Clients) == 0 {

-

} else { for _, client := range state.Clients { }
id start time session type rendez-vous id username host os shell
{client.ClientId} {client.StartTime.In(location).Format(time.DateTime)} {client.SessionType} {client.PublicId} {client.EnvironmentInfo.Username} {client.EnvironmentInfo.Hostname} {client.EnvironmentInfo.OS} {client.EnvironmentInfo.Shell}
}
} templ SessionsTab(state *models.State, loc *time.Location) { @BasePage(4) { @Sessions(state, loc) } }