Made the elo system work. Colorized the leaderboard. Better data structure. Improved the HTML. Custom form system. Added Sessions

This commit is contained in:
Jonas Hahn
2025-08-25 14:56:59 +02:00
parent 4b4377a24e
commit f5e5d5632d
20 changed files with 492 additions and 289 deletions

View File

@@ -1,9 +1,9 @@
{{define "content"}}
<div class="card">
<h2>Leaderboard (by wins)</h2>
<h2>Leaderboard</h2>
<ol>
{{range .Rows}}
<li>@<a href="/u/{{.Slug}}">{{.Username}}</a> - {{.Wins}} wins ({{.Games}} games)</li>
{{range .Users}}
<li><a href="/user/{{.Slug}}">@{{.Username}}</a> - {{.Elo}}</li>
{{else}}
<li class="small">No players yet.</li>
{{end}}