diff --git a/internal/web/ui/templates/monitor.html b/internal/web/ui/templates/monitor.html index 250f9bd..cf849a5 100644 --- a/internal/web/ui/templates/monitor.html +++ b/internal/web/ui/templates/monitor.html @@ -3,66 +3,67 @@

{{icon "devices"}}视频监控

-
从设备拉取通道列表,点击通道查看实时画面。
-
-
- +
选择在线设备,加载通道后查看实时画面。
-
-
请先选择在线设备,点击"加载通道"。
+{{if .Devices}} +
+
+ + + + {{range .Devices}} + {{if .Online}} + + + + + + {{end}} + {{end}} + +
设备地址操作
{{.DisplayName}}
{{.DeviceID}}
{{.IP}}:{{.AgentPort}}
+
+{{else}} +
暂无在线设备。
+{{end}} + +
{{end}}