Refactor and remove sqlite and replace with MySQL

This commit is contained in:
2025-10-23 18:43:31 +01:00
parent d53e27eea8
commit 21ebc9c34b
139 changed files with 1013 additions and 529 deletions

View File

@@ -0,0 +1,34 @@
{{ 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 }}