diff --git a/templates/announcer_display_score_posted.html b/templates/announcer_display_score_posted.html index 49e0fc5f..a73ae554 100644 --- a/templates/announcer_display_score_posted.html +++ b/templates/announcer_display_score_posted.html @@ -63,16 +63,17 @@

Fouls

{{range $foul := .fouls}}
- {{if (index $.rulesViolated $foul.RuleId).IsRankingPoint}} + {{if and (index $.rulesViolated $foul.RuleId) (index $.rulesViolated $foul.RuleId).IsRankingPoint}} Free RP {{else}} - {{if (index $.rulesViolated $foul.RuleId).IsTechnical}}Tech {{end}} + {{if $foul.IsTechnical}}Tech {{end}} Foul {{end}}
Team {{$foul.TeamId}}
-
- {{(index $.rulesViolated $foul.RuleId).RuleNumber}} +
+ {{if index $.rulesViolated $foul.RuleId}}{{(index $.rulesViolated $foul.RuleId).RuleNumber}}{{end}}
{{end}}