mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-24 23:01:19 +00:00
Create bracket views with upcomingMatches
This commit is contained in:
@@ -12,9 +12,9 @@
|
||||
<% @poolOneWrestlers.sort_by{|x|[x.original_seed]}.each do |w| %>
|
||||
<tr>
|
||||
<td><%= w.original_seed %> <%= w.name %> <%= w.season_win %>-<%= w.season_loss %> <%= w.school.name %></td>
|
||||
<td><%= w.boutByRound(1) %><br></td>
|
||||
<td><%= w.boutByRound(2) %></td>
|
||||
<td><%= w.boutByRound(3) %></td>
|
||||
<td><%= w.boutByRound(1,@matches) %><br></td>
|
||||
<td><%= w.boutByRound(2,@matches) %></td>
|
||||
<td><%= w.boutByRound(3,@matches) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
@@ -35,9 +35,9 @@
|
||||
<% @poolTwoWrestlers.sort_by{|x|[x.original_seed]}.each do |w| %>
|
||||
<tr>
|
||||
<td><%= w.original_seed %> <%= w.name %> <%= w.season_win %>-<%= w.season_loss %> <%= w.school.name %></td>
|
||||
<td><%= w.boutByRound(1) %><br></td>
|
||||
<td><%= w.boutByRound(2) %></td>
|
||||
<td><%= w.boutByRound(3) %></td>
|
||||
<td><%= w.boutByRound(1,@matches) %><br></td>
|
||||
<td><%= w.boutByRound(2,@matches) %></td>
|
||||
<td><%= w.boutByRound(3,@matches) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
@@ -58,9 +58,9 @@
|
||||
<% @poolThreeWrestlers.sort_by{|x|[x.original_seed]}.each do |w| %>
|
||||
<tr>
|
||||
<td><%= w.original_seed %> <%= w.name %> <%= w.season_win %>-<%= w.season_loss %> <%= w.school.name %></td>
|
||||
<td><%= w.boutByRound(1) %><br></td>
|
||||
<td><%= w.boutByRound(2) %></td>
|
||||
<td><%= w.boutByRound(3) %></td>
|
||||
<td><%= w.boutByRound(1,@matches) %><br></td>
|
||||
<td><%= w.boutByRound(2,@matches) %></td>
|
||||
<td><%= w.boutByRound(3,@matches) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
@@ -81,9 +81,9 @@
|
||||
<% @poolFourWrestlers.sort_by{|x|[x.original_seed]}.each do |w| %>
|
||||
<tr>
|
||||
<td><%= w.original_seed %> <%= w.name %> <%= w.season_win %>-<%= w.season_loss %> <%= w.school.name %></td>
|
||||
<td><%= w.boutByRound(1) %><br></td>
|
||||
<td><%= w.boutByRound(2) %></td>
|
||||
<td><%= w.boutByRound(3) %></td>
|
||||
<td><%= w.boutByRound(1,@matches) %><br></td>
|
||||
<td><%= w.boutByRound(2,@matches) %></td>
|
||||
<td><%= w.boutByRound(3,@matches) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
<% @poolOneWrestlers.each do |w| %>
|
||||
<tr>
|
||||
<td><%= w.original_seed %> <%= w.name %> <%= w.season_win %>-<%= w.season_loss %> <%= w.school.name %></td>
|
||||
<td><%= w.boutByRound(1) %><br>Result</td>
|
||||
<td><%= w.boutByRound(2) %></td>
|
||||
<td><%= w.boutByRound(3) %></td>
|
||||
<td><%= w.boutByRound(4) %></td>
|
||||
<td><%= w.boutByRound(5) %></td>
|
||||
<td><%= w.boutByRound(1,@matches) %><br>Result</td>
|
||||
<td><%= w.boutByRound(2,@matches) %></td>
|
||||
<td><%= w.boutByRound(3,@matches) %></td>
|
||||
<td><%= w.boutByRound(4,@matches) %></td>
|
||||
<td><%= w.boutByRound(5,@matches) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
<% @poolOneWrestlers.sort_by{|x|[x.original_seed]}.each do |w| %>
|
||||
<tr>
|
||||
<td><%= w.original_seed %> <%= w.name %> <%= w.season_win %>-<%= w.season_loss %> <%= w.school.name %></td>
|
||||
<td><%= w.boutByRound(1) %><br></td>
|
||||
<td><%= w.boutByRound(2) %></td>
|
||||
<td><%= w.boutByRound(3) %></td>
|
||||
<td><%= w.boutByRound(4) %></td>
|
||||
<td><%= w.boutByRound(1,@matches) %><br></td>
|
||||
<td><%= w.boutByRound(2,@matches) %></td>
|
||||
<td><%= w.boutByRound(3,@matches) %></td>
|
||||
<td><%= w.boutByRound(4,@matches) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
@@ -37,10 +37,10 @@
|
||||
<% @poolTwoWrestlers.sort_by{|x|[x.original_seed]}.each do |w| %>
|
||||
<tr>
|
||||
<td><%= w.original_seed %> <%= w.name %> <%= w.season_win %>-<%= w.season_loss %> <%= w.school.name %></td>
|
||||
<td><%= w.boutByRound(1) %><br></td>
|
||||
<td><%= w.boutByRound(2) %></td>
|
||||
<td><%= w.boutByRound(3) %></td>
|
||||
<td><%= w.boutByRound(4) %></td>
|
||||
<td><%= w.boutByRound(1,@matches) %><br></td>
|
||||
<td><%= w.boutByRound(2,@matches) %></td>
|
||||
<td><%= w.boutByRound(3,@matches) %></td>
|
||||
<td><%= w.boutByRound(4,@matches) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user