1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-22 22:37:01 +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

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