{{define "software.html"}} {{template "base" .}} {{end}} {{define "content"}} {{if .Error}}
{{.Error}}
{{end}} {{if .Message}}
{{.Message}}
{{end}} {{$sseURL := "/software/progress"}}{{if .AutoReboot}}{{$sseURL = "/software/progress?auto-reboot=1"}}{{end}} {{if .Installing}}
{{template "sw-progress-body" .}}
{{end}}
Software
{{if .BootOrder}}
Boot order {{range .BootOrder}}{{.}}{{end}}
{{end}} {{if .Slots}}
{{range .Slots}}
{{.Name}} {{if .Booted}}booted {{else}}{{.State}}{{end}}
{{if .Version}}{{.Version}}{{else}}—{{end}}
{{if .InstallDate}}
{{.InstallDate}}
{{end}}
{{end}}
{{else}}

No software information available.

{{end}}
Install from URL

Fetch a .pkg software bundle from a URL and install directly.

Upload & Install

Select a .pkg software bundle from your computer to upload and install directly.

{{end}} {{define "sw-progress-body"}} {{if and .Installer .Installer.Done}} {{if .Installer.Success}}
Install Complete
{{template "icon-check-lg"}} Software installed successfully.
{{if not .AutoReboot}}
{{end}}
{{else}}
Install Failed
{{template "icon-circle-x"}} {{.Installer.LastError}}
{{end}} {{else}}
Install in Progress

{{if .Installer}}{{.Installer.Percentage}}% — {{.Installer.Message}}{{else}}Installing…{{end}}

{{end}} {{end}}