Skip to content

Commit

Permalink
Fix bug with announcer display fouls.
Browse files Browse the repository at this point in the history
  • Loading branch information
patfair committed Sep 30, 2023
1 parent ef5b87c commit 73e03b7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions templates/announcer_display_score_posted.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,17 @@ <h4>Fouls</h4>
{{range $foul := .fouls}}
<div class="row">
<div class="col-sm-4 col-sm-offset-1">
{{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}}
</div>
<div class="col-sm-4">Team {{$foul.TeamId}}</div>
<div class="col-sm-3" data-toggle="tooltip" title="{{(index $.rulesViolated $foul.RuleId).Description}}">
{{(index $.rulesViolated $foul.RuleId).RuleNumber}}
<div class="col-sm-3" data-toggle="tooltip"
{{if index $.rulesViolated $foul.RuleId}}title="{{(index $.rulesViolated $foul.RuleId).Description}}"{{end}}>
{{if index $.rulesViolated $foul.RuleId}}{{(index $.rulesViolated $foul.RuleId).RuleNumber}}{{end}}
</div>
</div>
{{end}}
Expand Down

0 comments on commit 73e03b7

Please sign in to comment.