aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-10-23 23:58:46 -0700
committerChris Lu <chris.lu@gmail.com>2020-10-23 23:58:46 -0700
commitfb124f2d4a1ad80fca836f6e37585c1ee6e251cb (patch)
tree7fd052477e4b5a20364e53a1800cea8ca8dfe7d4
parent8eaa067da5315835701a3d0c5c183ab9499ea831 (diff)
downloadseaweedfs-fb124f2d4a1ad80fca836f6e37585c1ee6e251cb.tar.xz
seaweedfs-fb124f2d4a1ad80fca836f6e37585c1ee6e251cb.zip
conditionally display volume server public url link
-rw-r--r--weed/server/master_ui/templates.go2
1 files changed, 1 insertions, 1 deletions
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(`<!DOCTYPE html>
<td><code>{{ $dc.Id }}</code></td>
<td>{{ $rack.Id }}</td>
<td><a href="http://{{ $dn.Url }}/ui/index.html">{{ $dn.Url }}</a>
- {{ if $dn.PublicUrl }}
+ {{ if ne $dn.PublicUrl $dn.Url }}
/ <a href="http://{{ $dn.PublicUrl }}/ui/index.html">{{ $dn.PublicUrl }}</a>
{{ end }}
</td>