47 lines
1.2 KiB
HTML
47 lines
1.2 KiB
HTML
{{ define "title" }}Share Browser{{ end }} {{ define "header" }}☀️ Pool Share
|
|
Browser{{ end }} {{ define "content" }}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Time</th>
|
|
<th>Worker</th>
|
|
<th>SDiff</th>
|
|
<th>Result</th>
|
|
<th>Hash</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range .Shares }}
|
|
<tr>
|
|
<td>{{ formatCreateDate .CreateDate }}</td>
|
|
<td>{{ .WorkerName }}</td>
|
|
<td>{{ humanDiff .SDiff }}</td>
|
|
<td>{{ if .Result }}✔️{{ else }}❌{{ end }}</td>
|
|
<td><code style="font-size: small">{{ .Hash }}</code></td>
|
|
</tr>
|
|
{{ else }}
|
|
<tr>
|
|
<td colspan="5">No shares found.</td>
|
|
</tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|
|
|
|
<div>
|
|
{{ if gt .Page 1 }}
|
|
<a class="page-link" href="?page={{ sub .Page 1 }}">« Prev</a>
|
|
{{ end }} {{ if gt .Page 2 }}
|
|
<a class="page-link" href="?page=1">1</a>
|
|
{{ if gt .Page 3 }}
|
|
<span class="page-link">...</span>
|
|
{{ end }} {{ end }}
|
|
|
|
<a class="page-link current" href="?page={{ .Page }}">{{ .Page }}</a>
|
|
|
|
{{ if .HasMore }}
|
|
<span class="page-link">...</span>
|
|
<a class="page-link" href="?page={{ add .Page 1 }}">Next »</a>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }} {{ template "layout" . }}
|