diff options
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}} |