diff options
author | GrailFinder <wohilas@gmail.com> | 2024-03-23 16:39:52 +0300 |
---|---|---|
committer | GrailFinder <wohilas@gmail.com> | 2024-03-23 16:39:52 +0300 |
commit | 4ea04ef5b382b147d789240ef78dc24bd142df95 (patch) | |
tree | f2d61824aefae9a87312d4a73874701e10d1b9c4 /components/actions_table.html | |
parent | 87d71e65ed131b3e15510af968dd5ba0d30d851d (diff) |
Enha: demonstraton of layouts
Diffstat (limited to 'components/actions_table.html')
-rw-r--r-- | components/actions_table.html | 42 |
1 files changed, 42 insertions, 0 deletions
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"}} +<table> + <tr> + <th>ID</th> + <th>BurnTime</th> + <th>Score</th> + </tr> + <tr> + <td>{{.ID}}</td> + <td>{{.BurnTime}}</td> + <td>{{.Score}}</td> + </tr> +</table> +<table> + <tr> + <th>ActionTypePlus</th> + </tr> + {{range $action := .Actions}} + {{if eq $action.Type "ActionTypePlus"}} + <tr> + <td>{{$action.Name}}</td> + <td>{{$action.Magnitude}}</td> + <td>{{$action.Repeatable}}</td> + </tr> + {{end}} + {{end}} +</table> +<table> + <tr> + <th>ActionTypeMinus</th> + </tr> + {{range $action := .Actions}} + {{if eq $action.Type "ActionTypeMinus"}} + <tr> + <td>{{$action.Name}}</td> + <td>{{$action.Magnitude}}</td> + <td>{{$action.Repeatable}}</td> + </tr> + {{end}} + {{end}} +</table> +{{end}} |