Files
website/templates/index.html

26 lines
595 B
HTML

{{ define "content" }}
<a href="/new">+ Add New Draw</a>
<table>
<tr>
<th>Date</th>
<th>Machine</th>
<th>Ball Set</th>
<th>Balls</th>
<th>Thunderball</th>
</tr>
{{ if . }}
{{ range . }}
<tr>
<td>{{ .Date }}</td>
<td>{{ .Machine }}</td>
<td>{{ .Ballset }}</td>
<td>{{ .Ball1 }}, {{ .Ball2 }}, {{ .Ball3 }}, {{ .Ball4 }}, {{ .Ball5 }}</td>
<td>{{ .Thunderball }}</td>
</tr>
{{ end }}
{{ else }}
<tr><td colspan="5">No draws recorded yet.</td></tr>
{{ end }}
</table>
{{ end }}