Add total RAM capacity calculation and update index view
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user