mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Bracket views added for 12-16
This commit is contained in:
@@ -39,6 +39,12 @@ class StaticPagesController < ApplicationController
|
||||
@seed6 = Wrestler.where(weight_id: @weight.id, original_seed: 6).first
|
||||
@seed8 = Wrestler.where(weight_id: @weight.id, original_seed: 8).first
|
||||
@seed3 = Wrestler.where(weight_id: @weight.id, original_seed: 3).first
|
||||
@seed11 = Wrestler.where(weight_id: @weight.id, original_seed: 11).first
|
||||
@seed12 = Wrestler.where(weight_id: @weight.id, original_seed: 12).first
|
||||
@seed13 = Wrestler.where(weight_id: @weight.id, original_seed: 13).first
|
||||
@seed14 = Wrestler.where(weight_id: @weight.id, original_seed: 14).first
|
||||
@seed15 = Wrestler.where(weight_id: @weight.id, original_seed: 15).first
|
||||
@seed16 = Wrestler.where(weight_id: @weight.id, original_seed: 16).first
|
||||
end
|
||||
|
||||
|
||||
@@ -79,6 +85,12 @@ class StaticPagesController < ApplicationController
|
||||
@seed6 = Wrestler.where(weight_id: weight.id, original_seed: 6).first
|
||||
@seed8 = Wrestler.where(weight_id: weight.id, original_seed: 8).first
|
||||
@seed3 = Wrestler.where(weight_id: weight.id, original_seed: 3).first
|
||||
@seed11 = Wrestler.where(weight_id: @weight.id, original_seed: 11).first
|
||||
@seed12 = Wrestler.where(weight_id: @weight.id, original_seed: 12).first
|
||||
@seed13 = Wrestler.where(weight_id: @weight.id, original_seed: 13).first
|
||||
@seed14 = Wrestler.where(weight_id: @weight.id, original_seed: 14).first
|
||||
@seed15 = Wrestler.where(weight_id: @weight.id, original_seed: 15).first
|
||||
@seed16 = Wrestler.where(weight_id: @weight.id, original_seed: 16).first
|
||||
@bracket_size = Wrestler.where(weight_id: weight.id).count
|
||||
def createMatch(r_id,g_id,tournament)
|
||||
@match = Match.new
|
||||
@@ -88,7 +100,16 @@ class StaticPagesController < ApplicationController
|
||||
@match.round = 1
|
||||
@match.save
|
||||
end
|
||||
if @bracket_size == 10
|
||||
if @bracket_size == 16
|
||||
createMatch(@seed1.id,@seed16.id,@tournament.id)
|
||||
createMatch(@seed12.id,@seed8.id,@tournament.id)
|
||||
createMatch(@seed2.id,@seed15.id,@tournament.id)
|
||||
createMatch(@seed11.id,@seed7.id,@tournament.id)
|
||||
createMatch(@seed3.id,@seed14.id,@tournament.id)
|
||||
createMatch(@seed10.id,@seed6.id,@tournament.id)
|
||||
createMatch(@seed4.id,@seed13.id,@tournament.id)
|
||||
createMatch(@seed9.id,@seed5.id,@tournament.id)
|
||||
elsif @bracket_size == 10
|
||||
createMatch(@seed1.id,@seed10.id,@tournament.id)
|
||||
createMatch(@seed5.id,@seed7.id,@tournament.id)
|
||||
createMatch(@seed2.id,@seed9.id,@tournament.id)
|
||||
@@ -117,6 +138,11 @@ class StaticPagesController < ApplicationController
|
||||
@seed6 = Wrestler.where(weight_id: weight.id, original_seed: 6).first
|
||||
@seed8 = Wrestler.where(weight_id: weight.id, original_seed: 8).first
|
||||
@seed3 = Wrestler.where(weight_id: weight.id, original_seed: 3).first
|
||||
@seed12 = Wrestler.where(weight_id: @weight.id, original_seed: 12).first
|
||||
@seed13 = Wrestler.where(weight_id: @weight.id, original_seed: 13).first
|
||||
@seed14 = Wrestler.where(weight_id: @weight.id, original_seed: 14).first
|
||||
@seed15 = Wrestler.where(weight_id: @weight.id, original_seed: 15).first
|
||||
@seed16 = Wrestler.where(weight_id: @weight.id, original_seed: 16).first
|
||||
@bracket_size = Wrestler.where(weight_id: weight.id).count
|
||||
def createMatch(r_id,g_id,tournament)
|
||||
@match = Match.new
|
||||
@@ -126,7 +152,16 @@ class StaticPagesController < ApplicationController
|
||||
@match.round = 2
|
||||
@match.save
|
||||
end
|
||||
if @bracket_size == 10
|
||||
if @bracket_size == 16
|
||||
createMatch(@seed1.id,@seed12.id,@tournament.id)
|
||||
createMatch(@seed16.id,@seed8.id,@tournament.id)
|
||||
createMatch(@seed2.id,@seed11.id,@tournament.id)
|
||||
createMatch(@seed15.id,@seed7.id,@tournament.id)
|
||||
createMatch(@seed3.id,@seed10.id,@tournament.id)
|
||||
createMatch(@seed14.id,@seed6.id,@tournament.id)
|
||||
createMatch(@seed4.id,@seed9.id,@tournament.id)
|
||||
createMatch(@seed13.id,@seed5.id,@tournament.id)
|
||||
elsif @bracket_size == 10
|
||||
createMatch(@seed1.id,@seed5.id,@tournament.id)
|
||||
createMatch(@seed10.id,@seed4.id,@tournament.id)
|
||||
createMatch(@seed2.id,@seed6.id,@tournament.id)
|
||||
@@ -156,6 +191,11 @@ class StaticPagesController < ApplicationController
|
||||
@seed6 = Wrestler.where(weight_id: weight.id, original_seed: 6).first
|
||||
@seed8 = Wrestler.where(weight_id: weight.id, original_seed: 8).first
|
||||
@seed3 = Wrestler.where(weight_id: weight.id, original_seed: 3).first
|
||||
@seed12 = Wrestler.where(weight_id: @weight.id, original_seed: 12).first
|
||||
@seed13 = Wrestler.where(weight_id: @weight.id, original_seed: 13).first
|
||||
@seed14 = Wrestler.where(weight_id: @weight.id, original_seed: 14).first
|
||||
@seed15 = Wrestler.where(weight_id: @weight.id, original_seed: 15).first
|
||||
@seed16 = Wrestler.where(weight_id: @weight.id, original_seed: 16).first
|
||||
@bracket_size = Wrestler.where(weight_id: weight.id).count
|
||||
def createMatch(r_id,g_id,tournament)
|
||||
@match = Match.new
|
||||
@@ -165,7 +205,16 @@ class StaticPagesController < ApplicationController
|
||||
@match.round = 3
|
||||
@match.save
|
||||
end
|
||||
if @bracket_size == 10
|
||||
if @bracket_size == 16
|
||||
createMatch(@seed1.id,@seed8.id,@tournament.id)
|
||||
createMatch(@seed12.id,@seed16.id,@tournament.id)
|
||||
createMatch(@seed2.id,@seed7.id,@tournament.id)
|
||||
createMatch(@seed11.id,@seed15.id,@tournament.id)
|
||||
createMatch(@seed3.id,@seed6.id,@tournament.id)
|
||||
createMatch(@seed10.id,@seed14.id,@tournament.id)
|
||||
createMatch(@seed4.id,@seed5.id,@tournament.id)
|
||||
createMatch(@seed9.id,@seed13.id,@tournament.id)
|
||||
elsif @bracket_size == 10
|
||||
createMatch(@seed1.id,@seed4.id,@tournament.id)
|
||||
createMatch(@seed10.id,@seed7.id,@tournament.id)
|
||||
createMatch(@seed2.id,@seed3.id,@tournament.id)
|
||||
|
||||
155
app/views/static_pages/_man12.html.erb
Normal file
155
app/views/static_pages/_man12.html.erb
Normal file
@@ -0,0 +1,155 @@
|
||||
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1. <%= @seed1.name %> <%= @seed1.season_win %>-<%= @seed1.season_loss %> <%= School.find(@seed1.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V3</td>
|
||||
<td>V4</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2. BYE</td>
|
||||
<td>V1</td>
|
||||
<td>V4</td>
|
||||
<td>V3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3. <%= @seed12.name %> <%= @seed12.season_win %>-<%= @seed12.season_loss %> <%= School.find(@seed12.school_id).name %></td>
|
||||
<td>V4</td>
|
||||
<td>V1</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4. <%= @seed8.name %> <%= @seed8.season_win %>-<%= @seed8.season_loss %> <%= School.find(@seed8.school_id).name %></td>
|
||||
<td>V3</td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h3>Pool 2</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>5. <%= @seed2.name %> <%= @seed2.season_win %>-<%= @seed2.season_loss %> <%= School.find(@seed2.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V7</td>
|
||||
<td>V8</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>6. BYE</td>
|
||||
<td>V6</td>
|
||||
<td>V8</td>
|
||||
<td>V7</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>7. <%= @seed11.name %> <%= @seed11.season_win %>-<%= @seed11.season_loss %> <%= School.find(@seed11.school_id).name %></td>
|
||||
<td>V8</td>
|
||||
<td>V5</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>8. <%= @seed7.name %> <%= @seed7.season_win %>-<%= @seed7.season_loss %> <%= School.find(@seed7.school_id).name %></td>
|
||||
<td>V7</td>
|
||||
<td>BYE</td>
|
||||
<td>V5</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3>Pool 3</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>9. <%= @seed3.name %> <%= @seed3.season_win %>-<%= @seed3.season_loss %> <%= School.find(@seed3.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V11</td>
|
||||
<td>V12</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>10. BYE</td>
|
||||
<td>V9</td>
|
||||
<td>V12</td>
|
||||
<td>V11</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>11. <%= @seed10.name %> <%= @seed10.season_win %>-<%= @seed10.season_loss %> <%= School.find(@seed10.school_id).name %></td>
|
||||
<td>V12</td>
|
||||
<td>V9</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>12. <%= @seed6.name %> <%= @seed6.season_win %>-<%= @seed6.season_loss %> <%= School.find(@seed6.school_id).name %></td>
|
||||
<td>V11</td>
|
||||
<td>BYE</td>
|
||||
<td>V9</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h3>Pool 4</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>13. <%= @seed4.name %> <%= @seed4.season_win %>-<%= @seed4.season_loss %> <%= School.find(@seed4.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V15</td>
|
||||
<td>V16</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>14. BYE</td>
|
||||
<td>V13</td>
|
||||
<td>V16</td>
|
||||
<td>V15</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>15. <%= @seed9.name %> <%= @seed9.season_win %>-<%= @seed9.season_loss %> <%= School.find(@seed9.school_id).name %></td>
|
||||
<td>V16</td>
|
||||
<td>V13</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>16. <%= @seed5.name %> <%= @seed5.season_win %>-<%= @seed5.season_loss %> <%= School.find(@seed5.school_id).name %></td>
|
||||
<td>V15</td>
|
||||
<td>BYE</td>
|
||||
<td>V13</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
155
app/views/static_pages/_man13.html.erb
Normal file
155
app/views/static_pages/_man13.html.erb
Normal file
@@ -0,0 +1,155 @@
|
||||
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1. <%= @seed1.name %> <%= @seed1.season_win %>-<%= @seed1.season_loss %> <%= School.find(@seed1.school_id).name %></td>
|
||||
<td>V2</td>
|
||||
<td>V3</td>
|
||||
<td>V4</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2. <%= @seed13.name %> <%= @seed13.season_win %>-<%= @seed13.season_loss %> <%= School.find(@seed13.school_id).name %></td>
|
||||
<td>V1</td>
|
||||
<td>V4</td>
|
||||
<td>V3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3. <%= @seed12.name %> <%= @seed12.season_win %>-<%= @seed12.season_loss %> <%= School.find(@seed12.school_id).name %></td>
|
||||
<td>V4</td>
|
||||
<td>V1</td>
|
||||
<td>V2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4. <%= @seed8.name %> <%= @seed8.season_win %>-<%= @seed8.season_loss %> <%= School.find(@seed8.school_id).name %></td>
|
||||
<td>V3</td>
|
||||
<td>V2</td>
|
||||
<td>V1</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h3>Pool 2</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>5. <%= @seed2.name %> <%= @seed2.season_win %>-<%= @seed2.season_loss %> <%= School.find(@seed2.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V7</td>
|
||||
<td>V8</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>6. BYE</td>
|
||||
<td>V6</td>
|
||||
<td>V8</td>
|
||||
<td>V7</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>7. <%= @seed11.name %> <%= @seed11.season_win %>-<%= @seed11.season_loss %> <%= School.find(@seed11.school_id).name %></td>
|
||||
<td>V8</td>
|
||||
<td>V5</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>8. <%= @seed7.name %> <%= @seed7.season_win %>-<%= @seed7.season_loss %> <%= School.find(@seed7.school_id).name %></td>
|
||||
<td>V7</td>
|
||||
<td>BYE</td>
|
||||
<td>V5</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3>Pool 3</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>9. <%= @seed3.name %> <%= @seed3.season_win %>-<%= @seed3.season_loss %> <%= School.find(@seed3.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V11</td>
|
||||
<td>V12</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>10. BYE</td>
|
||||
<td>V9</td>
|
||||
<td>V12</td>
|
||||
<td>V11</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>11. <%= @seed10.name %> <%= @seed10.season_win %>-<%= @seed10.season_loss %> <%= School.find(@seed10.school_id).name %></td>
|
||||
<td>V12</td>
|
||||
<td>V9</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>12. <%= @seed6.name %> <%= @seed6.season_win %>-<%= @seed6.season_loss %> <%= School.find(@seed6.school_id).name %></td>
|
||||
<td>V11</td>
|
||||
<td>BYE</td>
|
||||
<td>V9</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h3>Pool 4</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>13. <%= @seed4.name %> <%= @seed4.season_win %>-<%= @seed4.season_loss %> <%= School.find(@seed4.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V15</td>
|
||||
<td>V16</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>14. BYE</td>
|
||||
<td>V13</td>
|
||||
<td>V16</td>
|
||||
<td>V15</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>15. <%= @seed9.name %> <%= @seed9.season_win %>-<%= @seed9.season_loss %> <%= School.find(@seed9.school_id).name %></td>
|
||||
<td>V16</td>
|
||||
<td>V13</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>16. <%= @seed5.name %> <%= @seed5.season_win %>-<%= @seed5.season_loss %> <%= School.find(@seed5.school_id).name %></td>
|
||||
<td>V15</td>
|
||||
<td>BYE</td>
|
||||
<td>V13</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
155
app/views/static_pages/_man14.html.erb
Normal file
155
app/views/static_pages/_man14.html.erb
Normal file
@@ -0,0 +1,155 @@
|
||||
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1. <%= @seed1.name %> <%= @seed1.season_win %>-<%= @seed1.season_loss %> <%= School.find(@seed1.school_id).name %></td>
|
||||
<td>V2</td>
|
||||
<td>V3</td>
|
||||
<td>V4</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2. <%= @seed14.name %> <%= @seed14.season_win %>-<%= @seed14.season_loss %> <%= School.find(@seed14.school_id).name %></td>
|
||||
<td>V1</td>
|
||||
<td>V4</td>
|
||||
<td>V3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3. <%= @seed12.name %> <%= @seed12.season_win %>-<%= @seed12.season_loss %> <%= School.find(@seed12.school_id).name %></td>
|
||||
<td>V4</td>
|
||||
<td>V1</td>
|
||||
<td>V2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4. <%= @seed8.name %> <%= @seed8.season_win %>-<%= @seed8.season_loss %> <%= School.find(@seed8.school_id).name %></td>
|
||||
<td>V3</td>
|
||||
<td>V2</td>
|
||||
<td>V1</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h3>Pool 2</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>5. <%= @seed2.name %> <%= @seed2.season_win %>-<%= @seed2.season_loss %> <%= School.find(@seed2.school_id).name %></td>
|
||||
<td>V6</td>
|
||||
<td>V7</td>
|
||||
<td>V8</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>6. <%= @seed13.name %> <%= @seed13.season_win %>-<%= @seed13.season_loss %> <%= School.find(@seed13.school_id).name %></td>
|
||||
<td>V5</td>
|
||||
<td>V8</td>
|
||||
<td>V7</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>7. <%= @seed11.name %> <%= @seed11.season_win %>-<%= @seed11.season_loss %> <%= School.find(@seed11.school_id).name %></td>
|
||||
<td>V8</td>
|
||||
<td>V5</td>
|
||||
<td>V6</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>8. <%= @seed7.name %> <%= @seed7.season_win %>-<%= @seed7.season_loss %> <%= School.find(@seed7.school_id).name %></td>
|
||||
<td>V7</td>
|
||||
<td>V6</td>
|
||||
<td>V5</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3>Pool 3</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>9. <%= @seed3.name %> <%= @seed3.season_win %>-<%= @seed3.season_loss %> <%= School.find(@seed3.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V11</td>
|
||||
<td>V12</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>10. BYE</td>
|
||||
<td>V9</td>
|
||||
<td>V12</td>
|
||||
<td>V11</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>11. <%= @seed10.name %> <%= @seed10.season_win %>-<%= @seed10.season_loss %> <%= School.find(@seed10.school_id).name %></td>
|
||||
<td>V12</td>
|
||||
<td>V9</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>12. <%= @seed6.name %> <%= @seed6.season_win %>-<%= @seed6.season_loss %> <%= School.find(@seed6.school_id).name %></td>
|
||||
<td>V11</td>
|
||||
<td>BYE</td>
|
||||
<td>V9</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h3>Pool 4</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>13. <%= @seed4.name %> <%= @seed4.season_win %>-<%= @seed4.season_loss %> <%= School.find(@seed4.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V15</td>
|
||||
<td>V16</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>14. BYE</td>
|
||||
<td>V13</td>
|
||||
<td>V16</td>
|
||||
<td>V15</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>15. <%= @seed9.name %> <%= @seed9.season_win %>-<%= @seed9.season_loss %> <%= School.find(@seed9.school_id).name %></td>
|
||||
<td>V16</td>
|
||||
<td>V13</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>16. <%= @seed5.name %> <%= @seed5.season_win %>-<%= @seed5.season_loss %> <%= School.find(@seed5.school_id).name %></td>
|
||||
<td>V15</td>
|
||||
<td>BYE</td>
|
||||
<td>V13</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
155
app/views/static_pages/_man15.html.erb
Normal file
155
app/views/static_pages/_man15.html.erb
Normal file
@@ -0,0 +1,155 @@
|
||||
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1. <%= @seed1.name %> <%= @seed1.season_win %>-<%= @seed1.season_loss %> <%= School.find(@seed1.school_id).name %></td>
|
||||
<td>V2</td>
|
||||
<td>V3</td>
|
||||
<td>V4</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2. <%= @seed15.name %> <%= @seed15.season_win %>-<%= @seed15.season_loss %> <%= School.find(@seed15.school_id).name %></td>
|
||||
<td>V1</td>
|
||||
<td>V4</td>
|
||||
<td>V3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3. <%= @seed12.name %> <%= @seed12.season_win %>-<%= @seed12.season_loss %> <%= School.find(@seed12.school_id).name %></td>
|
||||
<td>V4</td>
|
||||
<td>V1</td>
|
||||
<td>V2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4. <%= @seed8.name %> <%= @seed8.season_win %>-<%= @seed8.season_loss %> <%= School.find(@seed8.school_id).name %></td>
|
||||
<td>V3</td>
|
||||
<td>V2</td>
|
||||
<td>V1</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h3>Pool 2</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>5. <%= @seed2.name %> <%= @seed2.season_win %>-<%= @seed2.season_loss %> <%= School.find(@seed2.school_id).name %></td>
|
||||
<td>V6</td>
|
||||
<td>V7</td>
|
||||
<td>V8</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>6. <%= @seed14.name %> <%= @seed14.season_win %>-<%= @seed14.season_loss %> <%= School.find(@seed14.school_id).name %></td>
|
||||
<td>V5</td>
|
||||
<td>V8</td>
|
||||
<td>V7</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>7. <%= @seed11.name %> <%= @seed11.season_win %>-<%= @seed11.season_loss %> <%= School.find(@seed11.school_id).name %></td>
|
||||
<td>V8</td>
|
||||
<td>V5</td>
|
||||
<td>V6</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>8. <%= @seed7.name %> <%= @seed7.season_win %>-<%= @seed7.season_loss %> <%= School.find(@seed7.school_id).name %></td>
|
||||
<td>V7</td>
|
||||
<td>V6</td>
|
||||
<td>V5</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3>Pool 3</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>9. <%= @seed3.name %> <%= @seed3.season_win %>-<%= @seed3.season_loss %> <%= School.find(@seed3.school_id).name %></td>
|
||||
<td>V10</td>
|
||||
<td>V11</td>
|
||||
<td>V12</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>10. <%= @seed13.name %> <%= @seed13.season_win %>-<%= @seed13.season_loss %> <%= School.find(@seed13.school_id).name %></td>
|
||||
<td>V9</td>
|
||||
<td>V12</td>
|
||||
<td>V11</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>11. <%= @seed10.name %> <%= @seed10.season_win %>-<%= @seed10.season_loss %> <%= School.find(@seed10.school_id).name %></td>
|
||||
<td>V12</td>
|
||||
<td>V9</td>
|
||||
<td>V10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>12. <%= @seed6.name %> <%= @seed6.season_win %>-<%= @seed6.season_loss %> <%= School.find(@seed6.school_id).name %></td>
|
||||
<td>V11</td>
|
||||
<td>V10</td>
|
||||
<td>V9</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h3>Pool 4</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>13. <%= @seed4.name %> <%= @seed4.season_win %>-<%= @seed4.season_loss %> <%= School.find(@seed4.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V15</td>
|
||||
<td>V16</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>14. BYE</td>
|
||||
<td>V13</td>
|
||||
<td>V16</td>
|
||||
<td>V15</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>15. <%= @seed9.name %> <%= @seed9.season_win %>-<%= @seed9.season_loss %> <%= School.find(@seed9.school_id).name %></td>
|
||||
<td>V16</td>
|
||||
<td>V13</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>16. <%= @seed5.name %> <%= @seed5.season_win %>-<%= @seed5.season_loss %> <%= School.find(@seed5.school_id).name %></td>
|
||||
<td>V15</td>
|
||||
<td>BYE</td>
|
||||
<td>V13</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
155
app/views/static_pages/_man16.html.erb
Normal file
155
app/views/static_pages/_man16.html.erb
Normal file
@@ -0,0 +1,155 @@
|
||||
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1. <%= @seed1.name %> <%= @seed1.season_win %>-<%= @seed1.season_loss %> <%= School.find(@seed1.school_id).name %></td>
|
||||
<td>V2</td>
|
||||
<td>V3</td>
|
||||
<td>V4</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2. <%= @seed16.name %> <%= @seed16.season_win %>-<%= @seed16.season_loss %> <%= School.find(@seed16.school_id).name %></td>
|
||||
<td>V1</td>
|
||||
<td>V4</td>
|
||||
<td>V3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3. <%= @seed12.name %> <%= @seed12.season_win %>-<%= @seed12.season_loss %> <%= School.find(@seed12.school_id).name %></td>
|
||||
<td>V4</td>
|
||||
<td>V1</td>
|
||||
<td>V2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4. <%= @seed8.name %> <%= @seed8.season_win %>-<%= @seed8.season_loss %> <%= School.find(@seed8.school_id).name %></td>
|
||||
<td>V3</td>
|
||||
<td>V2</td>
|
||||
<td>V1</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h3>Pool 2</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>5. <%= @seed2.name %> <%= @seed2.season_win %>-<%= @seed2.season_loss %> <%= School.find(@seed2.school_id).name %></td>
|
||||
<td>V6</td>
|
||||
<td>V7</td>
|
||||
<td>V8</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>6. <%= @seed15.name %> <%= @seed15.season_win %>-<%= @seed15.season_loss %> <%= School.find(@seed15.school_id).name %></td>
|
||||
<td>V5</td>
|
||||
<td>V8</td>
|
||||
<td>V7</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>7. <%= @seed11.name %> <%= @seed11.season_win %>-<%= @seed11.season_loss %> <%= School.find(@seed11.school_id).name %></td>
|
||||
<td>V8</td>
|
||||
<td>V5</td>
|
||||
<td>V6</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>8. <%= @seed7.name %> <%= @seed7.season_win %>-<%= @seed7.season_loss %> <%= School.find(@seed7.school_id).name %></td>
|
||||
<td>V7</td>
|
||||
<td>V6</td>
|
||||
<td>V5</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3>Pool 3</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>9. <%= @seed3.name %> <%= @seed3.season_win %>-<%= @seed3.season_loss %> <%= School.find(@seed3.school_id).name %></td>
|
||||
<td>V10</td>
|
||||
<td>V11</td>
|
||||
<td>V12</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>10. <%= @seed14.name %> <%= @seed14.season_win %>-<%= @seed14.season_loss %> <%= School.find(@seed14.school_id).name %></td>
|
||||
<td>V9</td>
|
||||
<td>V12</td>
|
||||
<td>V11</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>11. <%= @seed10.name %> <%= @seed10.season_win %>-<%= @seed10.season_loss %> <%= School.find(@seed10.school_id).name %></td>
|
||||
<td>V12</td>
|
||||
<td>V9</td>
|
||||
<td>V10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>12. <%= @seed6.name %> <%= @seed6.season_win %>-<%= @seed6.season_loss %> <%= School.find(@seed6.school_id).name %></td>
|
||||
<td>V11</td>
|
||||
<td>V10</td>
|
||||
<td>V9</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h3>Pool 4</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>R1</th>
|
||||
<th>R2</th>
|
||||
<th>R3</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>13. <%= @seed4.name %> <%= @seed4.season_win %>-<%= @seed4.season_loss %> <%= School.find(@seed4.school_id).name %></td>
|
||||
<td>V14</td>
|
||||
<td>V15</td>
|
||||
<td>V16</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>14. <%= @seed13.name %> <%= @seed13.season_win %>-<%= @seed13.season_loss %> <%= School.find(@seed13.school_id).name %></td>
|
||||
<td>V13</td>
|
||||
<td>V16</td>
|
||||
<td>V15</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>15. <%= @seed9.name %> <%= @seed9.season_win %>-<%= @seed9.season_loss %> <%= School.find(@seed9.school_id).name %></td>
|
||||
<td>V16</td>
|
||||
<td>V13</td>
|
||||
<td>V14</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>16. <%= @seed5.name %> <%= @seed5.season_win %>-<%= @seed5.season_loss %> <%= School.find(@seed5.school_id).name %></td>
|
||||
<td>V15</td>
|
||||
<td>V14</td>
|
||||
<td>V13</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
@@ -20,4 +20,14 @@
|
||||
<%= 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' %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user