From 5fb4b1f7dd6b373786a64dfe0ac59955fb6d964c Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 9 Nov 2024 16:28:47 +0100 Subject: yolo r2con push all --- templates/battleNew.html | 40 +++++++++- templates/battleSingle.html | 177 ++++++++++++++++++++++++-------------------- 2 files changed, 136 insertions(+), 81 deletions(-) (limited to 'templates') diff --git a/templates/battleNew.html b/templates/battleNew.html index 30923e7..1992e1d 100644 --- a/templates/battleNew.html +++ b/templates/battleNew.html @@ -50,7 +50,21 @@ {{- end }} - + + + + Arena size: + + + + + + + Max Rounds: + + + + Public: @@ -62,6 +76,23 @@ + + Owners + + {{ $viewerID := .user.ID }} + {{ range $idx, $u := .users}}{{if $idx}},{{- end}} + + + {{- end }} + + + @@ -70,11 +101,16 @@ {{ if .res }} - {{ .res }} +
{{ .res }}
{{ end }} + + +

Debug

+ +
{{ . }}
{{ template "footer" . }} {{ end }} diff --git a/templates/battleSingle.html b/templates/battleSingle.html index 267a0df..b074a75 100644 --- a/templates/battleSingle.html +++ b/templates/battleSingle.html @@ -19,7 +19,7 @@ - + @@ -56,13 +56,6 @@ --> - - - - - - - -
- {{ range $idx, $bot := .battle.Bots }}{{if $idx}},{{end}}{{ $bot.Name }}{{ end }} -
+ - - - - {{ if .res }} - - -
{{ .res }}
- - {{ end }} - -


-


- + + Max Rounds: + + + + - {{ if .myBots }} + + Owners + + {{ $viewerID := .user.ID }} + {{ $owners := .battle.Owners }} + {{ range $idx, $u := .users}}{{if $idx}},{{- end}} + + + {{- end }} + + + -
- - - - {{ range $bot := .myBots }} - - - - - {{ end }} -
- - - -
+ + +
+ + + +
+ + {{ if .res }} - + +
{{ .res }}
-
- - {{ else }} + {{ end }} - - - Upload a bot to get started! - + +


+


+ - {{ end }} + {{ if .myBots }} - - + + + + + + -
+ + - - - + + + + -

+ {{ else }} + + + + + {{ end }} - - - + +
+ + {{ range $bot := .myBots }} + + + + + {{ end }} +
+ + + +
+
+
+ +
+
Upload a bot to get started!

Registered Bots

@@ -194,13 +213,13 @@

Output

- +
{{ .battle.RawOutput }}
+

Debug

+
{{ . }}
-
{{ .battle }}
- {{ template "footer" . }} {{ end }} -- cgit 1.4.1