diff --git a/internal/service/resource_management.go b/internal/service/resource_management.go index f364cea..25a3209 100644 --- a/internal/service/resource_management.go +++ b/internal/service/resource_management.go @@ -36,6 +36,7 @@ type ResourceStatusCell struct { type ResourceStatusRow struct { DeviceID string `json:"device_id"` DeviceName string `json:"device_name"` + DeviceIP string `json:"device_ip"` Online bool `json:"online"` Cells []ResourceStatusCell `json:"cells"` ExtraCount int `json:"extra_resource_count"` @@ -190,6 +191,7 @@ func BuildResourceStatusBoard(standardResources []storage.StandardResourceRecord row := ResourceStatusRow{ DeviceID: device.DeviceID, DeviceName: device.DisplayName(), + DeviceIP: device.IP, Online: device.Online, Cells: make([]ResourceStatusCell, 0, len(standardResources)), ExtraResources: make([]InstalledResourceStatus, 0), diff --git a/internal/web/ui/templates/face_gallery.html b/internal/web/ui/templates/face_gallery.html index 8d886ef..4eae929 100644 --- a/internal/web/ui/templates/face_gallery.html +++ b/internal/web/ui/templates/face_gallery.html @@ -86,7 +86,7 @@
{{.DeviceName}}
-
{{.DeviceID}}
+
{{.DeviceIP}} ยท {{.DeviceID}}
{{range .Cells}}