mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-15 01:43:35 +00:00
Added a feature to generate uuid links for coaches to submit their school lineups.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
<% @winner_place = "1st" %>
|
||||
<%= render 'bracket_final' %>
|
||||
</div>
|
||||
<! -- Only use a 2nd page for consolation bracket if bracket is bigger than 16 -->
|
||||
<% if @weight.wrestlers.size > 16 %>
|
||||
</div>
|
||||
</div>
|
||||
@@ -24,6 +25,7 @@
|
||||
<div class="page">
|
||||
<div class="bracket-container">
|
||||
<% end %>
|
||||
<! -- End if for only use a 2nd page for consolation bracket if bracket is bigger than 16 -->
|
||||
<h4><%= @tournament.name %> - <%= @weight.max %> Bracket</h4>
|
||||
<h4>Consolation Bracket</h4>
|
||||
<div class="bracket">
|
||||
@@ -41,13 +43,15 @@
|
||||
<% @winner_place = "3rd" %>
|
||||
<%= render 'bracket_final' %>
|
||||
</div>
|
||||
<% if @weight.wrestlers.size >= 6 && @tournament.number_of_placers >= 6 %>
|
||||
<h4>5/6 place match</h4>
|
||||
<div class="bracket">
|
||||
<% @final_match = @matches.select{|m|m.bracket_position == "5/6"} %>
|
||||
<% @winner_place = "5th" %>
|
||||
<%= render 'bracket_final' %>
|
||||
</div>
|
||||
<% if @tournament.number_of_placers >= 8 %>
|
||||
<% end %>
|
||||
<% if @weight.wrestlers.size >= 8 && @tournament.number_of_placers >= 8 %>
|
||||
<h4>7/8 place match</h4>
|
||||
<div class="bracket">
|
||||
<% @final_match = @matches.select{|m|m.bracket_position == "7/8"} %>
|
||||
|
||||
Reference in New Issue
Block a user