2
0
Files
GitCaddy 70452a9477
Some checks are pending
Build and Release / Lint (push) Waiting to run
Build and Release / Unit Tests (push) Waiting to run
Build and Release / Integration Tests (PostgreSQL) (push) Waiting to run
Build and Release / Create Release (push) Waiting to run
Build and Release / Build Binaries (amd64, darwin) (push) Blocked by required conditions
Build and Release / Build Binaries (amd64, linux) (push) Blocked by required conditions
Build and Release / Build Binaries (amd64, windows) (push) Blocked by required conditions
Build and Release / Build Binaries (arm64, darwin) (push) Blocked by required conditions
Build and Release / Build Binaries (arm64, linux) (push) Blocked by required conditions
v2.1.3: Add AI Learning admin UI and server status dashboard tiles
- Add AI Learning admin section for viewing/editing error patterns
- Add server status tiles to admin dashboard (CPU load, memory, disk)
- Auto-refresh dashboard tiles using HTMX
- Fix error template text (GitCaddy Server)
- Dark mode compatibility for all new UI elements

🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 14:55:06 +00:00

25 lines
2.3 KiB
Handlebars

{{if .ServerStats}}
<div style="display: flex; flex-direction: row; justify-content: space-between; align-items: stretch; gap: 20px;">
<div style="flex: 1; padding: 20px; background: var(--color-box-body); border: 1px solid var(--color-secondary); border-radius: 8px; text-align: center;">
<div style="font-size: 2em; font-weight: bold; margin-top: 13px; color: #21ba45;">{{svg "octicon-check-circle" 32}}</div>
<div style="font-size: 1.2em; font-weight: bold; margin-top: 8px;">{{.ServerStats.Status}}</div>
<div style="color: var(--color-text-light); margin-top: 5px; font-size: 0.9em;">Server Status</div>
</div>
<div style="flex: 1; padding: 20px; background: var(--color-box-body); border: 1px solid var(--color-secondary); border-radius: 8px; text-align: center;">
<div style="font-size: 2em; font-weight: bold; margin-top: 13px; color: #2185d0;">{{printf "%.2f" .ServerStats.CPULoad}}</div>
<div style="font-size: 1.2em; font-weight: bold; color: var(--color-text-light); margin-top: 10px;">{{.ServerStats.NumCPU}} cores, {{.ServerStats.NumGoroutine}} goroutines</div>
<div style="color: var(--color-text-light); margin-top: 8px; font-size: 0.9em;">CPU Load (1m avg)</div>
</div>
<div style="flex: 1; padding: 20px; background: var(--color-box-body); border: 1px solid var(--color-secondary); border-radius: 8px; text-align: center;">
<div style="font-size: 2em; font-weight: bold; margin-top: 13px; color: #6435c9;">{{printf "%.1f" .ServerStats.MemPercent}}%</div>
<div style="font-size: 1.2em; font-weight: bold; color: var(--color-text-light); margin-top: 10px;">{{FileSize .ServerStats.MemUsed}} / {{FileSize .ServerStats.MemTotal}}</div>
<div style="color: var(--color-text-light); margin-top: 8px; font-size: 0.9em;">Memory Usage</div>
</div>
<div style="flex: 1; padding: 20px; background: var(--color-box-body); border: 1px solid var(--color-secondary); border-radius: 8px; text-align: center;">
<div style="font-size: 2em; font-weight: bold; margin-top: 13px; color: #f2711c;">{{printf "%.1f" .ServerStats.DiskPercent}}%</div>
<div style="font-size: 1.2em; font-weight: bold; color: var(--color-text-light); margin-top: 10px;">{{FileSize .ServerStats.DiskFree}} free</div>
<div style="color: var(--color-text-light); margin-top: 8px; font-size: 0.9em;">Disk Usage</div>
</div>
</div>
{{end}}