{{ define "title" }}Championships{{ end }} {{ define "content" }} {{ $writeAccess := WriteAccess }}

Championships

{{ if $writeAccess }}
{{ end }}

Active

{{ range $index, $championship := .championships }} {{ if ne $championship.Progress 100.0 }} {{ end}} {{ end }}
Name Progress Number of Events Number of Classes Number of Entrants Actions
{{ $championship.Name }} {{ int $championship.Progress }}% {{ len $championship.Events }} {{ len $championship.Classes }} {{ $championship.NumEntrants }} View Export {{ if $writeAccess }} Edit Delete {{ end }}

Completed

{{ range $index, $championship := .championships }} {{ if eq $championship.Progress 100.0 }} {{ end }} {{ end }}
Name Number of Events Number of Classes Number of Entrants Actions
{{ $championship.Name }} {{ len $championship.Events }} {{ len $championship.Classes }} {{ $championship.NumEntrants }} View Export {{ if $writeAccess }} Edit Delete {{ end }}
{{ end }}