- <% if @weight.highest_bracket_round %>
- <% (1..@weight.highest_bracket_round).each do |round| %>
- <% @round_matches = @matches.select{|m|m.bracket_position == "Bracket" and m.round == round} %>
+
+
+
<%= @tournament.name %> - <%= @weight.max %> Bracket
+
Championship Bracket
+
+ <% if @weight.highest_bracket_round %>
+ <% (1..@weight.highest_bracket_round).each do |round| %>
+ <% @round_matches = @matches.select{|m|m.bracket_position == "Bracket" and m.round == round} %>
+ <%= render 'bracket_round' %>
+ <% end %>
+ <% end %>
+ <% @round_matches = @matches.select{|m|m.bracket_position == "Quarter"} %>
<%= render 'bracket_round' %>
- <% end %>
- <% end %>
- <% @round_matches = @matches.select{|m|m.bracket_position == "Quarter"} %>
- <%= render 'bracket_round' %>
- <% @round_matches = @matches.select{|m|m.bracket_position == "Semis"} %>
- <%= render 'bracket_round' %>
- <% @final_match = @matches.select{|m|m.bracket_position == "1/2"} %>
- <% @winner_place = "1st" %>
- <%= render 'bracket_final' %>
-
-
Consolation Bracket
-
- <% if @weight.highest_conso_round %>
- <% (1..@weight.highest_conso_round).each do |round| %>
- <% @round_matches = @matches.select{|m|m.bracket_position == "Conso" and m.round == round} %>
+ <% @round_matches = @matches.select{|m|m.bracket_position == "Semis"} %>
<%= render 'bracket_round' %>
- <% end %>
- <% end %>
- <% @round_matches = @matches.select{|m|m.bracket_position == "Conso Quarter"} %>
- <%= render 'bracket_round' %>
- <% @round_matches = @matches.select{|m|m.bracket_position == "Conso Semis"} %>
- <%= render 'bracket_round' %>
- <% @final_match = @matches.select{|m|m.bracket_position == "3/4"} %>
- <% @winner_place = "3rd" %>
- <%= render 'bracket_final' %>
-
-
5/6 place match
-
- <% @final_match = @matches.select{|m|m.bracket_position == "5/6"} %>
- <% @winner_place = "5th" %>
- <%= render 'bracket_final' %>
-
-<% if @tournament.number_of_placers >= 8 %>
-
7/8 place match
-
- <% @final_match = @matches.select{|m|m.bracket_position == "7/8"} %>
- <% @winner_place = "7th" %>
- <%= render 'bracket_final' %>
+ <% @final_match = @matches.select{|m|m.bracket_position == "1/2"} %>
+ <% @winner_place = "1st" %>
+ <%= render 'bracket_final' %>
+
-<% end %>
\ No newline at end of file
+
+
+
<%= @tournament.name %> - <%= @weight.max %> Bracket
+
Consolation Bracket
+
+ <% if @weight.highest_conso_round %>
+ <% (1..@weight.highest_conso_round).each do |round| %>
+ <% @round_matches = @matches.select{|m|m.bracket_position == "Conso" and m.round == round} %>
+ <%= render 'bracket_round' %>
+ <% end %>
+ <% end %>
+ <% @round_matches = @matches.select{|m|m.bracket_position == "Conso Quarter"} %>
+ <%= render 'bracket_round' %>
+ <% @round_matches = @matches.select{|m|m.bracket_position == "Conso Semis"} %>
+ <%= render 'bracket_round' %>
+ <% @final_match = @matches.select{|m|m.bracket_position == "3/4"} %>
+ <% @winner_place = "3rd" %>
+ <%= render 'bracket_final' %>
+
+
5/6 place match
+
+ <% @final_match = @matches.select{|m|m.bracket_position == "5/6"} %>
+ <% @winner_place = "5th" %>
+ <%= render 'bracket_final' %>
+
+ <% if @tournament.number_of_placers >= 8 %>
+
7/8 place match
+
+ <% @final_match = @matches.select{|m|m.bracket_position == "7/8"} %>
+ <% @winner_place = "7th" %>
+ <%= render 'bracket_final' %>
+
+ <% end %>
+
+
\ No newline at end of file
diff --git a/app/views/tournaments/_pool.html.erb b/app/views/tournaments/_pool.html.erb
index 3b2029b..7ffa162 100644
--- a/app/views/tournaments/_pool.html.erb
+++ b/app/views/tournaments/_pool.html.erb
@@ -1,6 +1,11 @@
<% @round = 1 %>
<% @pool = 1 %>
<% until @wrestlers.select{|w| w.pool == @pool}.blank? %>
+
+ <% if @pool == 5 %>
+
+