1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-13 16:40:48 +00:00

Created 4 pool view without bracket.

This commit is contained in:
2015-02-03 15:06:02 -05:00
parent 0244d15a8b
commit 7183935b60
5 changed files with 110 additions and 107 deletions

View File

@@ -0,0 +1,90 @@
<h5>Pool 1</h5>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Name</th>
<th>R1</th>
<th>R2</th>
<th>R3</th>
</tr>
</thead>
<tbody>
<% @poolOneWrestlers.each do |w| %>
<tr>
<td><%= 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>
</tr>
<% end %>
</tbody>
</table>
<h5>Pool 2</h5>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Name</th>
<th>R1</th>
<th>R2</th>
<th>R3</th>
</tr>
</thead>
<tbody>
<% @poolTwoWrestlers.each do |w| %>
<tr>
<td><%= 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>
</tr>
<% end %>
</tbody>
</table>
<h5>Pool 3</h5>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Name</th>
<th>R1</th>
<th>R2</th>
<th>R3</th>
</tr>
</thead>
<tbody>
<% @poolThreeWrestlers.each do |w| %>
<tr>
<td><%= 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>
</tr>
<% end %>
</tbody>
</table>
<h5>Pool 4</h5>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Name</th>
<th>R1</th>
<th>R2</th>
<th>R3</th>
</tr>
</thead>
<tbody>
<% @poolFourWrestlers.each do |w| %>
<tr>
<td><%= 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>
</tr>
<% end %>
</tbody>
</table>

View File

@@ -1,57 +0,0 @@
<h3>Pool 1</h3>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Name</th>
<th>R1</th>
<th>R2</th>
<th>R3</th>
<th>R4</th>
<th>R5</th>
</tr>
</thead>
<tbody>
<tr>
<td>1. <%= @seed1.name %> <%= @seed1.season_win %>-<%= @seed1.season_loss %> <%= @seed1.school.name %></td>
<td>V2<br>Result</td>
<td>V3</td>
<td>V5</td>
<td>V4</td>
<td>BYE</td>
</tr>
<tr>
<td>2. <%= @seed5.name %> <%= @seed5.season_win %>-<%= @seed5.season_loss %> <%= @seed5.school.name %></td>
<td>V1</td>
<td>V5</td>
<td>V4</td>
<td>BYE</td>
<td>V3</td>
</tr>
<tr>
<td>3. <%= @seed3.name %> <%= @seed3.season_win %>-<%= @seed3.season_loss %> <%= @seed3.school.name %></td>
<td>V4</td>
<td>V1</td>
<td>BYE</td>
<td>V5</td>
<td>V2</td>
</tr>
<tr>
<td>4. <%= @seed4.name %> <%= @seed4.season_win %>-<%= @seed4.season_loss %> <%= @seed4.school.name %></td>
<td>V3</td>
<td>BYE</td>
<td>V2</td>
<td>V1</td>
<td>V5</td>
</tr>
<tr>
<td>5. <%= @seed2.name %> <%= @seed2.season_win %>-<%= @seed2.season_loss %> <%= @seed2.school.name %></td>
<td>BYE</td>
<td>V2</td>
<td>V1</td>
<td>V3</td>
<td>V4</td>
</tr>
</tbody>
</table>

View File

@@ -2,34 +2,10 @@
<br>
<br>
<h1><%= @weight.max %> lbs Bracket</h1>
<% if @bracket_size == 10 %>
<%= render 'man10' %>
<% elsif @bracket_size == 9 %>
<%= render 'man9' %>
<% elsif @bracket_size == 8 %>
<%= render 'man8' %>
<% elsif @bracket_size == 7 %>
<%= render 'man7' %>
<% elsif @bracket_size == 6 %>
<%= render 'man6' %>
<% elsif @bracket_size == 5 %>
<%= render 'man5' %>
<% elsif @bracket_size == 4 %>
<%= render 'man4' %>
<% elsif @bracket_size == 3 %>
<%= render 'man3' %>
<% elsif @bracket_size == 2 %>
<%= render 'man2' %>
<% elsif @bracket_size == 16 %>
<%= render 'man16' %>
<% elsif @bracket_size == 15 %>
<%= render 'man15' %>
<% elsif @bracket_size == 14 %>
<%= render 'man14' %>
<% elsif @bracket_size == 13 %>
<%= render 'man13' %>
<% elsif @bracket_size == 12 %>
<%= render 'man12' %>
<% elsif @bracket_size == 11 %>
<%= render 'man11' %>
<% if @weight.pools == 4 %>
<%= render 'fourPool' %>
<% elsif @weight.pools == 2 %>
<%= render 'twoPool' %>
<% elsif @weight.pools == 1 %>
<%= render 'onePool' %>
<% end %>