aboutsummaryrefslogtreecommitdiff
path: root/weed/admin/view/app/cluster_volume_servers.templ
diff options
context:
space:
mode:
Diffstat (limited to 'weed/admin/view/app/cluster_volume_servers.templ')
-rw-r--r--weed/admin/view/app/cluster_volume_servers.templ36
1 files changed, 2 insertions, 34 deletions
diff --git a/weed/admin/view/app/cluster_volume_servers.templ b/weed/admin/view/app/cluster_volume_servers.templ
index 3a54d01b9..5b74e3376 100644
--- a/weed/admin/view/app/cluster_volume_servers.templ
+++ b/weed/admin/view/app/cluster_volume_servers.templ
@@ -42,25 +42,7 @@ templ ClusterVolumeServers(data dash.ClusterVolumeServersData) {
</div>
</div>
- <div class="col-xl-3 col-md-6 mb-4">
- <div class="card border-left-success shadow h-100 py-2">
- <div class="card-body">
- <div class="row no-gutters align-items-center">
- <div class="col mr-2">
- <div class="text-xs font-weight-bold text-success text-uppercase mb-1">
- Active Volume Servers
- </div>
- <div class="h5 mb-0 font-weight-bold text-gray-800">
- {fmt.Sprintf("%d", countActiveVolumeServers(data.VolumeServers))}
- </div>
- </div>
- <div class="col-auto">
- <i class="fas fa-check-circle fa-2x text-gray-300"></i>
- </div>
- </div>
- </div>
- </div>
- </div>
+
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-info shadow h-100 py-2">
@@ -123,7 +105,6 @@ templ ClusterVolumeServers(data dash.ClusterVolumeServersData) {
<th>Volumes</th>
<th>Capacity</th>
<th>Usage</th>
- <th>Status</th>
<th>Actions</th>
</tr>
</thead>
@@ -167,11 +148,6 @@ templ ClusterVolumeServers(data dash.ClusterVolumeServersData) {
</div>
</td>
<td>
- <span class={fmt.Sprintf("badge bg-%s", getStatusColor(host.Status))}>
- {host.Status}
- </span>
- </td>
- <td>
<div class="btn-group btn-group-sm">
<button type="button" class="btn btn-outline-primary btn-sm"
title="View Details">
@@ -210,12 +186,4 @@ templ ClusterVolumeServers(data dash.ClusterVolumeServersData) {
</div>
}
-func countActiveVolumeServers(volumeServers []dash.VolumeServer) int {
- count := 0
- for _, server := range volumeServers {
- if server.Status == "active" {
- count++
- }
- }
- return count
-} \ No newline at end of file
+ \ No newline at end of file