diff --git a/weed/server/volume_server_ui/templates.go b/weed/server/volume_server_ui/templates.go index 8034d8218..d85eb247a 100644 --- a/weed/server/volume_server_ui/templates.go +++ b/weed/server/volume_server_ui/templates.go @@ -25,6 +25,7 @@ var funcMap = template.FuncMap{ "join": join, "bytesToHumanReadable": util.BytesToHumanReadable, "percentFrom": percentFrom, + "isNotEmpty": util.IsNotEmpty, } //go:embed volume.html diff --git a/weed/server/volume_server_ui/volume.html b/weed/server/volume_server_ui/volume.html index 973b0bfbe..91809beb0 100644 --- a/weed/server/volume_server_ui/volume.html +++ b/weed/server/volume_server_ui/volume.html @@ -133,6 +133,7 @@ + {{ if isNotEmpty .RemoteVolumes }}