Skip to content

Commit

Permalink
Swap red and blue teams on match play and announcer display screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
patfair committed Sep 25, 2024
1 parent e44848f commit 642a9b7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
22 changes: 11 additions & 11 deletions templates/announcer_display_match_load.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
{{define "announcer_display_match_load"}}
<div class="row card card-body bg-blue">
{{if eq .Match.Type playoffMatch}}
<h4><b>Alliance {{.Match.PlayoffBlueAlliance}}</b></h4>
{{end}}
{{template "team" dict "alliance" "blue" "team" (index .Teams "B1") "rankings" .Rankings}}
{{template "team" dict "alliance" "blue" "team" (index .Teams "B2") "rankings" .Rankings}}
{{template "team" dict "alliance" "blue" "team" (index .Teams "B3") "rankings" .Rankings}}
{{range $team := .BlueOffFieldTeams}}
{{template "team" dict "alliance" "blue" "team" $team "rankings" $.Rankings "isOffField" true}}
{{end}}
</div>
<div class="row card card-body bg-red">
{{if eq .Match.Type playoffMatch}}
<h4><b>Alliance {{.Match.PlayoffRedAlliance}}</b></h4>
Expand All @@ -10,17 +21,6 @@ <h4><b>Alliance {{.Match.PlayoffRedAlliance}}</b></h4>
{{template "team" dict "alliance" "red" "team" $team "rankings" $.Rankings "isOffField" true}}
{{end}}
</div>
<div class="row card card-body bg-blue">
{{if eq .Match.Type playoffMatch}}
<h4><b>Alliance {{.Match.PlayoffBlueAlliance}}</b></h4>
{{end}}
{{template "team" dict "alliance" "blue" "team" (index .Teams "B1") "rankings" .Rankings}}
{{template "team" dict "alliance" "blue" "team" (index .Teams "B2") "rankings" .Rankings}}
{{template "team" dict "alliance" "blue" "team" (index .Teams "B3") "rankings" .Rankings}}
{{range $team := .BlueOffFieldTeams}}
{{template "team" dict "alliance" "blue" "team" $team "rankings" $.Rankings "isOffField" true}}
{{end}}
</div>
{{end}}
{{define "team"}}
<div class="row">
Expand Down
24 changes: 12 additions & 12 deletions templates/match_play.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,31 @@
<div id="blueScore" class="col-lg-2 card card-body bg-blue">&nbsp;</div>
</div>
<div class="row text-center">
<div class="col-lg-6 card card-body bg-blue mb-2">
<div class="col-lg-6 card card-body bg-red mb-2">
<div class="row mb-3">
<div class="col-lg-4">Blue Teams</div>
<div class="col-lg-4">Red Teams</div>
<div class="col-lg-2" data-bs-toggle="tooltip" title="Driver Station Status">DS</div>
<div class="col-lg-2" data-bs-toggle="tooltip" title="Radio Status">Rad</div>
<div class="col-lg-2" data-bs-toggle="tooltip" title="Robot Status">Rbt</div>
<div class="col-lg-2" data-bs-toggle="tooltip" title="Bypass/Disable">Byp</div>
</div>
{{template "matchPlayTeam" dict "color" "B" "position" 1}}
{{template "matchPlayTeam" dict "color" "B" "position" 2}}
{{template "matchPlayTeam" dict "color" "B" "position" 3}}
<div id="playoffBlueAllianceInfo"></div>
{{template "matchPlayTeam" dict "color" "R" "position" 1}}
{{template "matchPlayTeam" dict "color" "R" "position" 2}}
{{template "matchPlayTeam" dict "color" "R" "position" 3}}
<div id="playoffRedAllianceInfo"></div>
</div>
<div class="col-lg-6 card card-body bg-red mb-2">
<div class="col-lg-6 card card-body bg-blue mb-2">
<div class="row mb-3">
<div class="col-lg-4">Red Teams</div>
<div class="col-lg-4">Blue Teams</div>
<div class="col-lg-2" data-bs-toggle="tooltip" title="Driver Station Status">DS</div>
<div class="col-lg-2" data-bs-toggle="tooltip" title="Radio Status">Rad</div>
<div class="col-lg-2" data-bs-toggle="tooltip" title="Robot Status">Rbt</div>
<div class="col-lg-2" data-bs-toggle="tooltip" title="Bypass/Disable">Byp</div>
</div>
{{template "matchPlayTeam" dict "color" "R" "position" 3}}
{{template "matchPlayTeam" dict "color" "R" "position" 2}}
{{template "matchPlayTeam" dict "color" "R" "position" 1}}
<div id="playoffRedAllianceInfo"></div>
{{template "matchPlayTeam" dict "color" "B" "position" 3}}
{{template "matchPlayTeam" dict "color" "B" "position" 2}}
{{template "matchPlayTeam" dict "color" "B" "position" 1}}
<div id="playoffBlueAllianceInfo"></div>
</div>
</div>
<div class="row justify-content-center mt-1">
Expand Down

0 comments on commit 642a9b7

Please sign in to comment.