v0.15.7: Fix backup page storage display & rename system drive label
- Add StorageBars to backupsHandler so all registered storage paths appear - Update backups.html to use StorageBars loop (replacing single HDDConfigured block) - Rename "SSD (/)" → "Rendszer (/)" on backup, monitoring, and dashboard pages Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,14 @@
|
|||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### What was just completed (2026-02-19 session 57)
|
||||||
|
- **v0.15.7 — Fix backup page storage display & rename system drive label:**
|
||||||
|
|
||||||
|
Backup page ("Biztonsági mentés") now shows all registered storage paths instead of only a single "Külső HDD". Added `data["StorageBars"] = s.buildStorageBars()` to `backupsHandler` (was missing unlike dashboard/monitoring handlers). Updated `backups.html` storage bars section to use `StorageBars` loop (same pattern as monitoring page), replacing the old `{{if .HDDConfigured}}` single-HDD block.
|
||||||
|
|
||||||
|
Renamed system root partition label from "SSD (/)" to "Rendszer (/)" on all three pages (backup, monitoring, dashboard), as the root filesystem is not necessarily on an SSD.
|
||||||
|
|
||||||
|
**Files modified (4):** `internal/web/handlers.go`, `internal/web/templates/backups.html`, `internal/web/templates/monitoring.html`, `internal/web/templates/dashboard.html`
|
||||||
|
|
||||||
### What was just completed (2026-02-19 session 56)
|
### What was just completed (2026-02-19 session 56)
|
||||||
- **v0.15.6 (controller) + hub v0.1.7 — Bug hunt fixes (BUGHUNT.md):**
|
- **v0.15.6 (controller) + hub v0.1.7 — Bug hunt fixes (BUGHUNT.md):**
|
||||||
|
|
||||||
|
|||||||
@@ -434,6 +434,7 @@ func (s *Server) backupsHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
// System info for storage overview bars
|
// System info for storage overview bars
|
||||||
data["SystemInfo"] = system.GetInfo(s.primaryHDDPath(), s.cpuCollector)
|
data["SystemInfo"] = system.GetInfo(s.primaryHDDPath(), s.cpuCollector)
|
||||||
|
data["StorageBars"] = s.buildStorageBars()
|
||||||
|
|
||||||
if s.backupMgr != nil {
|
if s.backupMgr != nil {
|
||||||
nextDBDump := scheduler.NextDailyRun(s.cfg.Backup.DBDumpSchedule)
|
nextDBDump := scheduler.NextDailyRun(s.cfg.Backup.DBDumpSchedule)
|
||||||
|
|||||||
@@ -30,21 +30,21 @@
|
|||||||
{{with $.SystemInfo}}
|
{{with $.SystemInfo}}
|
||||||
<div class="storage-item">
|
<div class="storage-item">
|
||||||
<div class="storage-header">
|
<div class="storage-header">
|
||||||
<span class="storage-label">SSD (/)</span>
|
<span class="storage-label">Rendszer (/)</span>
|
||||||
<span class="storage-value">{{fmtGB .DiskUsedGB}} / {{fmtGB .DiskTotalGB}} ({{printf "%.0f" .DiskPercent}}%)</span>
|
<span class="storage-value">{{fmtGB .DiskUsedGB}} / {{fmtGB .DiskTotalGB}} ({{printf "%.0f" .DiskPercent}}%)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="system-bar">
|
<div class="system-bar">
|
||||||
<div class="system-bar-fill {{usageColor .DiskPercent | printf "system-bar-%s"}}" style="width:{{printf "%.1f" .DiskPercent}}%"></div>
|
<div class="system-bar-fill {{usageColor .DiskPercent | printf "system-bar-%s"}}" style="width:{{printf "%.1f" .DiskPercent}}%"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{if .HDDConfigured}}
|
{{range $.StorageBars}}
|
||||||
<div class="storage-item">
|
<div class="storage-item">
|
||||||
<div class="storage-header">
|
<div class="storage-header">
|
||||||
<span class="storage-label">Külső HDD</span>
|
<span class="storage-label">{{.Label}}</span>
|
||||||
<span class="storage-value">{{fmtGB .HDDUsedGB}} / {{fmtGB .HDDTotalGB}} ({{printf "%.0f" .HDDPercent}}%)</span>
|
<span class="storage-value">{{fmtGB .UsedGB}} / {{fmtGB .TotalGB}} ({{printf "%.0f" .Percent}}%)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="system-bar">
|
<div class="system-bar">
|
||||||
<div class="system-bar-fill {{usageColor .HDDPercent | printf "system-bar-%s"}}" style="width:{{printf "%.1f" .HDDPercent}}%"></div>
|
<div class="system-bar-fill {{usageColor .Percent | printf "system-bar-%s"}}" style="width:{{printf "%.1f" .Percent}}%"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
<div class="system-info-items" style="margin-top: 1rem;">
|
<div class="system-info-items" style="margin-top: 1rem;">
|
||||||
<div class="system-info-item">
|
<div class="system-info-item">
|
||||||
<div class="system-info-header">
|
<div class="system-info-header">
|
||||||
<span class="system-info-label">SSD tárhely</span>
|
<span class="system-info-label">Rendszer (/)</span>
|
||||||
<span class="system-info-value">{{fmtGB .SystemInfo.DiskUsedGB}} / {{fmtGB .SystemInfo.DiskTotalGB}} ({{printf "%.0f" .SystemInfo.DiskPercent}}%)</span>
|
<span class="system-info-value">{{fmtGB .SystemInfo.DiskUsedGB}} / {{fmtGB .SystemInfo.DiskTotalGB}} ({{printf "%.0f" .SystemInfo.DiskPercent}}%)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="system-bar">
|
<div class="system-bar">
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
{{with .SystemInfo}}
|
{{with .SystemInfo}}
|
||||||
<div class="storage-item">
|
<div class="storage-item">
|
||||||
<div class="storage-header">
|
<div class="storage-header">
|
||||||
<span class="storage-label">SSD (/)</span>
|
<span class="storage-label">Rendszer (/)</span>
|
||||||
<span class="storage-value">{{fmtGB .DiskUsedGB}} / {{fmtGB .DiskTotalGB}} ({{printf "%.0f" .DiskPercent}}%)</span>
|
<span class="storage-value">{{fmtGB .DiskUsedGB}} / {{fmtGB .DiskTotalGB}} ({{printf "%.0f" .DiskPercent}}%)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="system-bar">
|
<div class="system-bar">
|
||||||
|
|||||||
Reference in New Issue
Block a user