46 lines
1.1 KiB
HTML
46 lines
1.1 KiB
HTML
{{ define "title" }}Daily Stats{{ end }} {{ define "header" }}📊 Pool Daily
|
|
Stats{{ end }} {{ define "content" }}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Date (UTC)</th>
|
|
<th>Share Count</th>
|
|
<th>Top Share Diff</th>
|
|
<th>Pool Hashrate</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range .DailyStats }}
|
|
<tr>
|
|
<td>{{ .Date }}</td>
|
|
<td>{{ .ShareCount }}</td>
|
|
<td>{{ humanDiff .TopShare.SDiff }}</td>
|
|
<td>{{ formatHashrate .PoolHashrate }}</td>
|
|
</tr>
|
|
{{ else }}
|
|
<tr>
|
|
<td colspan="4">No stats found for this date range.</td>
|
|
</tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|
|
|
|
<div>
|
|
{{ if .PrevPageAvailable }}
|
|
<a class="page-link" href="?start={{ .PrevPageStart }}&end={{ .PrevPageEnd }}"
|
|
>« Prev</a
|
|
>
|
|
{{ end }}
|
|
|
|
<a class="page-link current" href="?start={{ .Start }}&end={{ .End }}"
|
|
>{{ .Start }} - {{ .End }}</a
|
|
>
|
|
|
|
{{ if .NextPageAvailable }}
|
|
<a class="page-link" href="?start={{ .NextPageStart }}&end={{ .NextPageEnd }}"
|
|
>Next »</a
|
|
>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }} {{ template "layout" . }}
|