Made the elo system work. Colorized the leaderboard. Better data structure. Improved the HTML. Custom form system. Added Sessions
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user