This repository has been archived on 2021-01-15. You can view files and clone it, but cannot push or open issues or pull requests.
goBug/template/tabella.html
2017-05-26 23:05:01 +02:00

26 lines
580 B
HTML

<table>
{{range $riga := .matrice}}
<tr>
{{range $cella := $riga}}
<td {{ if not $cella }}
class="vuoto"></td>
{{ else }}
{{ if $cella.IsFood }}
class="cibo"
{{ else }}
{{ if eq $cella.Razza 0 }}
class="razza1"
{{ else }}
class="razza2"
{{ end }}
{{ end }}>
{{ if $cella.IsFood }}
{{ $cella.Health }}
{{ else }}
{{ $cella.Evoluzione }} - {{ $cella.Health }} <br> {{ $cella.Age }}/{{ $cella.AgeMax }}
{{ end }}</td>
{{ end }}
{{ end }}
</tr>
{{ end }}
</table>