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

{{.Msg "dashboard.eyebrow"}}

{{.Msg "dashboard.heading"}}

{{.Msg "dashboard.introduction"}}

{{.Msg "dashboard.total"}}{{len .Instances}}
{{.Msg "dashboard.running"}}{{index .StatusCounts "running"}}
{{.Msg "dashboard.stopped"}}{{index .StatusCounts "stopped"}}
{{.Msg "dashboard.updating"}}{{index .StatusCounts "updating"}}
{{.Msg "dashboard.error"}}{{index .StatusCounts "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}} · {{.Instance}} · {{.Actor}}
  • {{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}}