aboutsummaryrefslogtreecommitdiff
path: root/weed/admin/view/app/cluster_filers.templ
diff options
context:
space:
mode:
Diffstat (limited to 'weed/admin/view/app/cluster_filers.templ')
-rw-r--r--weed/admin/view/app/cluster_filers.templ38
1 files changed, 2 insertions, 36 deletions
diff --git a/weed/admin/view/app/cluster_filers.templ b/weed/admin/view/app/cluster_filers.templ
index 58efe6f93..2221106b3 100644
--- a/weed/admin/view/app/cluster_filers.templ
+++ b/weed/admin/view/app/cluster_filers.templ
@@ -22,7 +22,7 @@ templ ClusterFilers(data dash.ClusterFilersData) {
<div id="filers-content">
<!-- Summary Cards -->
<div class="row mb-4">
- <div class="col-xl-6 col-md-6 mb-4">
+ <div class="col-xl-12 col-md-12 mb-4">
<div class="card border-left-primary shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
@@ -41,26 +41,6 @@ templ ClusterFilers(data dash.ClusterFilersData) {
</div>
</div>
</div>
-
- <div class="col-xl-6 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 Filers
- </div>
- <div class="h5 mb-0 font-weight-bold text-gray-800">
- { fmt.Sprintf("%d", countActiveFilers(data.Filers)) }
- </div>
- </div>
- <div class="col-auto">
- <i class="fas fa-check-circle fa-2x text-gray-300"></i>
- </div>
- </div>
- </div>
- </div>
- </div>
</div>
<!-- Filers Table -->
@@ -81,7 +61,6 @@ templ ClusterFilers(data dash.ClusterFilersData) {
<th>Data Center</th>
<th>Rack</th>
<th>Created At</th>
- <th>Status</th>
<th>Actions</th>
</tr>
</thead>
@@ -111,11 +90,6 @@ templ ClusterFilers(data dash.ClusterFilersData) {
}
</td>
<td>
- <span class={ fmt.Sprintf("badge bg-%s", getStatusColor(filer.Status)) }>
- { filer.Status }
- </span>
- </td>
- <td>
<div class="btn-group btn-group-sm">
<button type="button" class="btn btn-outline-primary btn-sm" title="View Details">
<i class="fas fa-eye"></i>
@@ -152,12 +126,4 @@ templ ClusterFilers(data dash.ClusterFilersData) {
</div>
}
-func countActiveFilers(filers []dash.FilerInfo) int {
- count := 0
- for _, filer := range filers {
- if filer.Status == "active" {
- count++
- }
- }
- return count
-} \ No newline at end of file
+ \ No newline at end of file