mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 06:47:24 +08:00
show RemoteVolumes/EcVolumes only if it is not empty
This commit is contained in:
@@ -25,6 +25,7 @@ var funcMap = template.FuncMap{
|
||||
"join": join,
|
||||
"bytesToHumanReadable": util.BytesToHumanReadable,
|
||||
"percentFrom": percentFrom,
|
||||
"isNotEmpty": util.IsNotEmpty,
|
||||
}
|
||||
|
||||
//go:embed volume.html
|
||||
|
@@ -133,6 +133,7 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ if isNotEmpty .RemoteVolumes }}
|
||||
<div class="row">
|
||||
<h2>Remote Volumes</h2>
|
||||
<table class="table table-striped">
|
||||
@@ -162,7 +163,9 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if isNotEmpty .EcVolumes }}
|
||||
<div class="row">
|
||||
<h2>Erasure Coding Shards</h2>
|
||||
<table class="table table-striped">
|
||||
@@ -188,7 +191,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user