From fb124f2d4a1ad80fca836f6e37585c1ee6e251cb Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 23 Oct 2020 23:58:46 -0700 Subject: [PATCH] conditionally display volume server public url link --- weed/server/master_ui/templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/master_ui/templates.go b/weed/server/master_ui/templates.go index 8e6b8333a..60873f6aa 100644 --- a/weed/server/master_ui/templates.go +++ b/weed/server/master_ui/templates.go @@ -89,7 +89,7 @@ var StatusTpl = template.Must(template.New("status").Parse(` {{ $dc.Id }} {{ $rack.Id }} {{ $dn.Url }} - {{ if $dn.PublicUrl }} + {{ if ne $dn.PublicUrl $dn.Url }} / {{ $dn.PublicUrl }} {{ end }}