{{define "component"}} {{template "head" .}} {{template "topbar" .}} {{template "breadcrumbs" .}}

Component Card

Vendor Serial
{{.Component.VendorSerial}}
Vendor
{{if .Component.Vendor}}{{.Component.Vendor}}{{else}}—{{end}}
Model
{{if .Component.Model}}{{.Component.Model}}{{else}}—{{end}}
Status{{componentStatusText .ComponentStatus}}
Asset{{if .CurrentAssetID}}{{.CurrentAssetLabel}}{{else}}—{{end}}
Firmware{{if .ComponentFirmware}}{{.ComponentFirmware}}{{else}}—{{end}}
First Seen{{formatTimePtr .Component.FirstSeenAt}}
Created{{formatTime .Component.CreatedAt}}

Installation History

{{if .InstallationHistory}} {{range .InstallationHistory}} {{end}}
Asset Installed At Removed At
{{.AssetLabel}} {{formatTimeFull .InstalledAt}} {{if .RemovedAt}}{{formatTimePtrFull .RemovedAt}}{{else}}—{{end}}
{{else}}
No installation history.
{{end}}

Timeline

{{if .Events}}
{{range .Events}}
{{formatTimeFull .EventTime}}
{{.EventType}}
Asset {{assetLabel .MachineID $.AssetLabelByID}} · Component {{componentLabel .PartID $.ComponentLabelByID}}
Type {{eventComponentType .PartID $.EventComponentByID}} · Location {{eventComponentLocation .PartID $.EventComponentByID}} · Model {{eventComponentModel .PartID $.EventComponentByID}} · Firmware {{if .FirmwareVersion}}{{.FirmwareVersion}}{{else}}{{eventComponentFirmware .PartID $.EventComponentByID}}{{end}}
{{end}}
{{else}}
No timeline events.
{{end}}
{{end}}