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

27 lines
580 B
HTML
Raw Permalink Normal View History

2017-05-26 15:54:45 +00:00
<table>
{{range $riga := .matrice}}
<tr>
{{range $cella := $riga}}
<td {{ if not $cella }}
2017-05-26 21:05:01 +00:00
class="vuoto"></td>
2017-05-26 15:54:45 +00:00
{{ else }}
{{ if $cella.IsFood }}
class="cibo"
{{ else }}
2017-05-26 16:13:16 +00:00
{{ if eq $cella.Razza 0 }}
class="razza1"
{{ else }}
class="razza2"
{{ end }}
2017-05-26 17:07:52 +00:00
{{ end }}>
{{ if $cella.IsFood }}
{{ $cella.Health }}
{{ else }}
{{ $cella.Evoluzione }} - {{ $cella.Health }} <br> {{ $cella.Age }}/{{ $cella.AgeMax }}
2017-05-26 17:07:52 +00:00
{{ end }}</td>
2017-05-26 15:54:45 +00:00
{{ end }}
{{ end }}
</tr>
{{ end }}
</table>