This commit is contained in:
Alicia 2019-02-23 14:16:37 +00:00
parent e7dbd3cc43
commit ea3b4aa7e0
3 changed files with 104 additions and 106 deletions

View File

@ -1,6 +1,6 @@
{{/*###
Handler=/leaderboard
TitleBar=Leaderboard
TitleBar=Vanilla Leaderboard
KyutGrill=leaderboard2.jpg
*/}}
{{ define "tpl" }}

View File

@ -1,10 +1,10 @@
{{/*###
Handler=/autoboard
TitleBar=Leaderboard
TitleBar=Autopilot Leaderboard
KyutGrill=leaderboard2.jpg
*/}}
{{ define "tpl" }}
<div class="ui container">
*/}}
{{ define "tpl" }}
<div class="ui container">
{{ $favModeRaw := .Get "users/self/favourite_mode" }}
{{ $favMode := _or (atoi (.Gin.Query "mode")) $favModeRaw.favourite_mode (float 0) }}
<script>
@ -54,6 +54,5 @@
</div>
</div>
</div>
</div>
{{ end }}
</div>
{{ end }}

View File

@ -1,10 +1,10 @@
{{/*###
Handler=/relaxboard
TitleBar=Leaderboard
TitleBar=Relax Leaderboard
KyutGrill=leaderboard2.jpg
*/}}
{{ define "tpl" }}
<div class="ui container">
{{ define "tpl" }}
<div class="ui container">
{{ $favModeRaw := .Get "users/self/favourite_mode" }}
{{ $favMode := _or (atoi (.Gin.Query "mode")) $favModeRaw.favourite_mode (float 0) }}
<script>
@ -54,6 +54,5 @@
</div>
</div>
</div>
</div>
{{ end }}
</div>
{{ end }}