1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-05-02 12:17:16 +00:00

Create bracket views with upcomingMatches

This commit is contained in:
2015-03-16 08:35:56 -04:00
parent 7b9422fd6c
commit 2843760779
8 changed files with 34 additions and 71 deletions

View File

@@ -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>