diff --git a/app/views/tournaments/all_brackets.html.erb b/app/views/tournaments/all_brackets.html.erb index 1b303ea..3d1107a 100644 --- a/app/views/tournaments/all_brackets.html.erb +++ b/app/views/tournaments/all_brackets.html.erb @@ -1,52 +1,55 @@ - - -<%= link_to "Back to #{@tournament.name} weights", "/tournaments/#{@tournament.id}/brackets" %> -
-
-
-<% @tournament.weights.sort_by{|w| w.max}.each do |w| %> - - -
- <% @weight = w %> - <% @matches = @tournament.matches.select{|m| m.weight_id == @weight.id} %> - <% @wrestlers = Wrestler.where(weight_id: @weight.id) %> - <% @pools = w.poolRounds(@matches) %> -
<%= @weight.max %> lbs Bracket
- - <%= render 'pool' %> -
- - -
- <% if w.pool_bracket_type == "twoPoolsToFinal" %> - <%= render 'twoPoolFinalBracket' %> - <% end %> - <% if w.pool_bracket_type == "twoPoolsToSemi" %> - <%= render 'twoPoolSemiBracket' %> - <% end %> - <% if w.pool_bracket_type == "fourPoolsToQuarter" %> - <%= render 'fourPoolQuarterBracket' %> - <% end %> - <% if w.pool_bracket_type == "fourPoolsToSemi" %> - <%= render 'fourPoolSemiBracket' %> - <% end %> -
-<% end %> -
+ + + <%= link_to "Back to #{@tournament.name} weights", "/tournaments/#{@tournament.id}/brackets" %> +
+
+
+ <% @tournament.weights.sort_by{|w| w.max}.each do |w| %> + + +
+ <% @weight = w %> + <% @matches = @tournament.matches.select{|m| m.weight_id == @weight.id} %> + <% @wrestlers = Wrestler.where(weight_id: @weight.id) %> + <% @pools = w.poolRounds(@matches) %> +
<%= @weight.max %> lbs Bracket
+ + <%= render 'pool' %> +
+ + +
+ <% if w.pool_bracket_type == "twoPoolsToFinal" %> + <%= render 'twoPoolFinalBracket' %> + <% end %> + <% if w.pool_bracket_type == "twoPoolsToSemi" %> + <%= render 'twoPoolSemiBracket' %> + <% end %> + <% if w.pool_bracket_type == "fourPoolsToQuarter" %> + <%= render 'fourPoolQuarterBracket' %> + <% end %> + <% if w.pool_bracket_type == "fourPoolsToSemi" %> + <%= render 'fourPoolSemiBracket' %> + <% end %> +
+ <% end %> +
+<% end %> \ No newline at end of file