Precalculate index stats

This commit is contained in:
Pijus Kamandulis
2025-06-23 17:52:20 +03:00
parent d801debaf6
commit be637f4540
13 changed files with 243 additions and 81 deletions

View File

@@ -1,3 +1,4 @@
{{define "index"}}
<!DOCTYPE html>
<html>
<head>
@@ -45,13 +46,15 @@
<th>Highest Share Diff</th>
<th>Time</th>
</tr>
{{range .}}
{{ range .Stats }}
<tr>
<td>{{.Label}}</td>
<td>{{.Diff}}</td>
<td>{{.Time}}</td>
<td>{{ .TimeWindowName }}</td>
<td>
{{ if ne .SDiff 0.0 }} {{ humanDiff .SDiff }} {{ else }} - {{ end }}
</td>
<td>{{ formatCreateDate .Time }}</td>
</tr>
{{end}}
{{ end }}
</table>
<ul>
@@ -61,3 +64,4 @@
</ul>
</body>
</html>
{{ end }}