{{define "home.html"}} {{.Title}} · DoGaMa {{template "sidebar" .}}

{{.Msg "dashboard.eyebrow"}}

{{.Msg "dashboard.heading"}}

{{.Msg "dashboard.introduction"}}

{{len .Instances}} {{.Msg "dashboard.total"}}
{{index .StatusCounts "running"}} {{.Msg "dashboard.running"}}
{{index .StatusCounts "stopped"}} {{.Msg "dashboard.stopped"}}
{{index .StatusCounts "updating"}} {{.Msg "dashboard.updating"}}
{{index .StatusCounts "error"}} {{.Msg "dashboard.error"}}

{{.Msg "dashboard.instances_eyebrow"}}

{{.Msg "dashboard.instances"}}

{{if .Instances}} {{else}}
◈

{{.Msg "dashboard.empty_heading"}}

{{.Msg "dashboard.empty_copy"}}

{{end}}

{{.Msg "dashboard.activity_eyebrow"}}

{{.Msg "dashboard.recent_activity"}}

{{if .RecentActivity}}
    {{range .RecentActivity}}
  • {{activityLabel .Action}}{{.Game}} — {{.Instance}}{{.Msg "dashboard.by"}} {{.Actor}} · {{.Time}}
    {{.Outcome}}
  • {{end}}
{{else}}

{{.Msg "dashboard.no_activity"}}

{{end}}

{{.Msg "dashboard.system_eyebrow"}}

{{.Msg "dashboard.system_status"}}

{{.Msg "dashboard.agent"}}
{{if .SystemStatus.AgentAvailable}} {{if .SystemStatus.AgentOnline}} {{.Msg "dashboard.online"}} {{else}} {{.Msg "dashboard.offline"}} {{end}} {{else}} {{.Msg "dashboard.unavailable"}} {{end}}
{{.Msg "dashboard.database"}}
{{if .SystemStatus.DatabaseHealthy}} {{.Msg "dashboard.healthy"}} {{else}} {{.Msg "dashboard.unavailable"}} {{end}}
{{.Msg "dashboard.storage"}}
{{if .SystemStatus.StorageAvailable}} {{storagePercent .SystemStatus.StorageUsed .SystemStatus.StorageTotal}} % {{else}} {{.Msg "dashboard.unavailable"}} {{end}}
{{end}}