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 Handler=/leaderboard
TitleBar=Leaderboard TitleBar=Vanilla Leaderboard
KyutGrill=leaderboard2.jpg KyutGrill=leaderboard2.jpg
*/}} */}}
{{ define "tpl" }} {{ define "tpl" }}

View File

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

View File

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