1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-03 13:30:02 +00:00

Ordered all pool bracket rounds by bracket_position_number

This commit is contained in:
2015-04-01 13:00:48 +00:00
parent d0277e1ab8
commit 9b9f6a0353
4 changed files with 23 additions and 23 deletions

View File

@@ -74,7 +74,7 @@ li.game{
<% end %>
</ul>
<ul class="round round-2">
<% @matches.select{|m|m.bracket_position == "Semis"}.each do |match| %>
<% @matches.select{|m|m.bracket_position == "Semis"}.sort_by{|m| m.bracket_position_number}.each do |match| %>
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
@@ -136,7 +136,7 @@ li.game{
<h5>Consolation Bracket After Pool</h5>
<main id="bracket">
<ul class="round round-1">
<% @matches.select{|m|m.bracket_position == "Conso Semis"}.each do |match| %>
<% @matches.select{|m|m.bracket_position == "Conso Semis"}.sort_by{|m| m.bracket_position_number}.each do |match| %>
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>

View File

@@ -62,7 +62,7 @@ li.game{
<h5>Championship Bracket After Pool</h5>
<main id="bracket">
<ul class="round round-1">
<% @matches.select{|m|m.bracket_position == "Semis"}.each do |match| %>
<% @matches.select{|m|m.bracket_position == "Semis"}.sort_by{|m| m.bracket_position_number}.each do |match| %>
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
@@ -127,7 +127,7 @@ li.game{
<h5>Consolation Bracket After Pool</h5>
<main id="bracket">
<ul class="round round-1">
<% @matches.select{|m|m.bracket_position == "Conso Semis"}.each do |match| %>
<% @matches.select{|m|m.bracket_position == "Conso Semis"}.sort_by{|m| m.bracket_position_number}.each do |match| %>
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>

View File

@@ -62,7 +62,7 @@ li.game{
<h5>Championship Bracket After Pool</h5>
<main id="bracket">
<ul class="round round-1">
<% @matches.select{|m|m.bracket_position == "Semis"}.each do |match| %>
<% @matches.select{|m|m.bracket_position == "Semis"}.sort_by{|m| m.bracket_position_number}.each do |match| %>
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>