Precalculate index stats
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user