Saved Stat
All checks were successful
/ release (push) Successful in 48s

This commit is contained in:
Samuel Lorch 2025-03-19 23:07:11 +01:00
parent e7371850d1
commit a5fc856764
2 changed files with 27 additions and 0 deletions

View file

@ -44,6 +44,23 @@
{{end}}
{{end}}
</div>
<h4>Saved</h4>
<div class="counter">
{{ $l := len .Saved }}
{{range $i, $c := .Saved}}
<img class="counter-image" alt="{{$c}}" src="/static/counter/{{$c}}.gif">
{{ $n := sub $l $i }}
{{ if eq $n 4 }}
KB
{{ else if eq $n 7 }}
MB
{{ else if eq $n 10 }}
GB
{{ else if eq $n 13 }}
TB
{{end}}
{{end}}
</div>
<div class="stats">
{{range $c := .Charts}}
{{$c.Element}} {{$c.Script}}