35 lines
1012 B
HTML
35 lines
1012 B
HTML
{{ define "content" }}
|
|
<a href="/">← Back to Home</a>
|
|
<h2>My Tickets</h2>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Game</th>
|
|
<th>Numbers</th>
|
|
<th>Bonus</th>
|
|
<th>Duplicate?</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range . }}
|
|
<tr>
|
|
<td>{{ .DrawDate }}</td>
|
|
<td>{{ .GameType }}</td>
|
|
<td>{{ .Ball1 }}, {{ .Ball2 }}, {{ .Ball3 }}, {{ .Ball4 }}, {{ .Ball5 }}</td>
|
|
<td>
|
|
{{ if .Bonus1 }}{{ .Bonus1 }}{{ end }}
|
|
{{ if .Bonus2 }}, {{ .Bonus2 }}{{ end }}
|
|
</td>
|
|
<td>
|
|
{{ if .Duplicate }}⚠️ Yes{{ else }}✔️ No{{ end }}
|
|
</td>
|
|
</tr>
|
|
{{ else }}
|
|
<tr><td colspan="5">No tickets logged yet.</td></tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|
|
{{ end }}
|