summaryrefslogtreecommitdiff
path: root/components/actions_table.html
blob: 0e9ecc17b5ee1eb356f148e76e9c74a579af9913 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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}}