From 4ea04ef5b382b147d789240ef78dc24bd142df95 Mon Sep 17 00:00:00 2001 From: GrailFinder Date: Sat, 23 Mar 2024 16:39:52 +0300 Subject: Enha: demonstraton of layouts --- components/actions_table.html | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 components/actions_table.html (limited to 'components/actions_table.html') diff --git a/components/actions_table.html b/components/actions_table.html new file mode 100644 index 0000000..0e9ecc1 --- /dev/null +++ b/components/actions_table.html @@ -0,0 +1,42 @@ +{{define "UserScore"}} + + + + + + + + + + + +
IDBurnTimeScore
{{.ID}}{{.BurnTime}}{{.Score}}
+ + + + + {{range $action := .Actions}} + {{if eq $action.Type "ActionTypePlus"}} + + + + + + {{end}} + {{end}} +
ActionTypePlus
{{$action.Name}}{{$action.Magnitude}}{{$action.Repeatable}}
+ + + + + {{range $action := .Actions}} + {{if eq $action.Type "ActionTypeMinus"}} + + + + + + {{end}} + {{end}} +
ActionTypeMinus
{{$action.Name}}{{$action.Magnitude}}{{$action.Repeatable}}
+{{end}} -- cgit v1.2.3