Add total RAM capacity calculation and update index view

This commit is contained in:
2025-03-24 12:32:05 +01:00
parent dbfbd6e164
commit 6e552e4de8
3 changed files with 24 additions and 8 deletions

View File

@@ -1,10 +1,12 @@
{{- /*gotype: main.IndexVM */}}
{{- /*gotype: main.IndexVM*/}}
{{define "index"}}
{{template "header"}}
<h2>Some statistics</h2>
<h2>Statistics</h2>
The inventory contains:
<ul>
<li>Database contains {{.AssetCount}} assets.</li>
<li>Database contains {{.BrandCount}} brands.</li>
<li><b>{{.AssetCount}}</b> assets in total.</li>
<li><b>{{.BrandCount}}</b> unique brands.</li>
<li>a combined <b>{{.TotalRamCapacity | formatMemorySize}}</b> of RAM.</li>
</ul>
<h2>Filter Devices</h2>