mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Added brackets for 6,5,4,3,&2
This commit is contained in:
57
app/views/static_pages/_man2.html.erb
Normal file
57
app/views/static_pages/_man2.html.erb
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
<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 %> <%= School.find(@seed1.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V5</td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2. BYE</td>
|
||||
<td>V1</td>
|
||||
<td>V5</td>
|
||||
<td>V4</td>
|
||||
<td>BYE</td>
|
||||
<td>V3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3. BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
<td>BYE</td>
|
||||
<td>V5</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4. BYE</td>
|
||||
<td>V3</td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
<td>V5</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5. <%= @seed2.name %> <%= @seed2.season_win %>-<%= @seed2.season_loss %> <%= School.find(@seed2.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
57
app/views/static_pages/_man3.html.erb
Normal file
57
app/views/static_pages/_man3.html.erb
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
<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 %> <%= School.find(@seed1.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V3</td>
|
||||
<td>V5</td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2. BYE</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 %> <%= School.find(@seed3.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
<td>BYE</td>
|
||||
<td>V5</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4. BYE</td>
|
||||
<td>V3</td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
<td>V5</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5. <%= @seed2.name %> <%= @seed2.season_win %>-<%= @seed2.season_loss %> <%= School.find(@seed2.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
<td>V3</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
57
app/views/static_pages/_man4.html.erb
Normal file
57
app/views/static_pages/_man4.html.erb
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
<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 %> <%= School.find(@seed1.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V3</td>
|
||||
<td>V5</td>
|
||||
<td>V4</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2. BYE</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 %> <%= School.find(@seed3.school_id).name %></td>
|
||||
<td>V4</td>
|
||||
<td>V1</td>
|
||||
<td>BYE</td>
|
||||
<td>V5</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4. <%= @seed4.name %> <%= @seed4.season_win %>-<%= @seed4.season_loss %> <%= School.find(@seed4.school_id).name %></td>
|
||||
<td>V3</td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
<td>V5</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5. <%= @seed2.name %> <%= @seed2.season_win %>-<%= @seed2.season_loss %> <%= School.find(@seed2.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
<td>V3</td>
|
||||
<td>V4</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
57
app/views/static_pages/_man5.html.erb
Normal file
57
app/views/static_pages/_man5.html.erb
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
<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 %> <%= School.find(@seed1.school_id).name %></td>
|
||||
<td>V2</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 %> <%= School.find(@seed5.school_id).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 %> <%= School.find(@seed3.school_id).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 %> <%= School.find(@seed4.school_id).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 %> <%= School.find(@seed2.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V2</td>
|
||||
<td>V1</td>
|
||||
<td>V3</td>
|
||||
<td>V4</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
112
app/views/static_pages/_man6.html.erb
Normal file
112
app/views/static_pages/_man6.html.erb
Normal file
@@ -0,0 +1,112 @@
|
||||
<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 %> <%= School.find(@seed1.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V3</td>
|
||||
<td>V5</td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2. BYE</td>
|
||||
<td>V1</td>
|
||||
<td>V5</td>
|
||||
<td>V4</td>
|
||||
<td>BYE</td>
|
||||
<td>V3</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3. <%= @seed5.name %> <%= @seed5.season_win %>-<%= @seed5.season_loss %> <%= School.find(@seed5.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
<td>BYE</td>
|
||||
<td>V5</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4. BYE</td>
|
||||
<td>V3</td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
<td>V5</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5. <%= @seed4.name %> <%= @seed4.season_win %>-<%= @seed4.season_loss %> <%= School.find(@seed4.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
<td>V3</td>
|
||||
<td>BYE</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>
|
||||
<th>R4</th>
|
||||
<th>R5</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>6. <%= @seed2.name %> <%= @seed2.season_win %>-<%= @seed2.season_loss %> <%= School.find(@seed2.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V8</td>
|
||||
<td>V10</td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>7. BYE</td>
|
||||
<td>V6</td>
|
||||
<td>V10</td>
|
||||
<td>V9</td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>8. <%= @seed6.name %> <%= @seed6.season_win %>-<%= @seed6.season_loss %> <%= School.find(@seed6.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>V6</td>
|
||||
<td>BYE</td>
|
||||
<td>V10</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>9. BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V6</td>
|
||||
<td>V10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>10. <%= @seed3.name %> <%= @seed3.season_win %>-<%= @seed3.season_loss %> <%= School.find(@seed3.school_id).name %></td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V6</td>
|
||||
<td>V8</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -10,4 +10,14 @@
|
||||
<%= 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' %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user