Better deployment with air. Colorized history. Fixed table bugs. Table will be added to game if coming from QR code. With tables in the history. App could be deployed now
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<h2>Enter a game</h2>
|
||||
|
||||
{{if .Table}}
|
||||
<p class="small">Table: <span class="badge">{{.Table.Name}}</span></p>
|
||||
<p class="small">Table: <span class="badge">{{.Table.Slug}}</span></p>
|
||||
{{end}}
|
||||
|
||||
<form method="POST" action="/enter">
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
<li>
|
||||
<div class="small">{{fmtTime .CreatedAt}}</div>
|
||||
<div>
|
||||
{{if .Table}}<span class="badge">{{.Table.Name}}</span> {{end}}
|
||||
{{if .WinnerIsA}}<span style="color: goldenrod;"> {{range .PlayersA}}{{.Username}} {{end}}{{.ScoreA}}</span>/{{.ScoreB}}
|
||||
{{else}} <span style="color: goldenrod;"> {{range .PlayersB}}{{.Username}} {{end}}{{.ScoreB}}</span>/{{.ScoreA}}{{end}}
|
||||
{{if .Table}}<span class="badge">{{.Table.Slug}}</span> {{end}}
|
||||
{{if .WinnerIsA}}<span style="color: darkgoldenrod;"> {{range .PlayersA}}{{.Username}} {{end}}{{.ScoreA}}</span>/{{.ScoreB}}
|
||||
{{else}} <span style="color: darkgoldenrod;"> {{range .PlayersB}}{{.Username}} {{end}}{{.ScoreB}}</span>/{{.ScoreA}}{{end}}
|
||||
</div>
|
||||
<div class="small">
|
||||
{{range .PlayersA}}@{{.Username}} <span style="color: chocolate;">{{.DeltaElo}}</span> {{end}}vs {{range .PlayersB}}@{{.Username}} <span style="color: chocolate;">{{.DeltaElo}}</span> {{end}}
|
||||
{{range .PlayersA}}@{{.Username}} <span style="color: {{.Color}};">{{.DeltaElo}}</span> {{end}}vs {{range .PlayersB}}@{{.Username}} <span style="color: {{.Color}};">{{.DeltaElo}}</span> {{end}}
|
||||
</div>
|
||||
</li>
|
||||
{{else}}
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
<div class="row">
|
||||
|
||||
<form method="post" action="/table/{{.CurrentSlug}}">
|
||||
<button style="background-color: greenyellow; border-color: gray;" type="submit">FinishGame</button>
|
||||
<button style="background-color: powderblue; border-color: gray;" type="submit">FinishGame</button>
|
||||
</form>
|
||||
<form method="post" action="/table/{{.CurrentSlug}}/reset">
|
||||
<button style="background-color: coral; border-color: gray;" type="submit">ResetGame</button>
|
||||
<button type="submit">ResetGame</button>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user