mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Wrote all brackets to static_pages brackets
This commit is contained in:
113
app/views/static_pages/_man7.html.erb
Normal file
113
app/views/static_pages/_man7.html.erb
Normal file
@@ -0,0 +1,113 @@
|
||||
<h1><%= @weight.max %> lbs Bracket</h1>
|
||||
<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 %></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. <%= @seed5.name %> <%= @seed5.season_win %>-<%= @seed5.season_loss %></td>
|
||||
<td>V4</td>
|
||||
<td>V1</td>
|
||||
<td>BYE</td>
|
||||
<td>V5</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4. <%= @seed7.name %> <%= @seed7.season_win %>-<%= @seed7.season_loss %></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 %></td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
<td>V3</td>
|
||||
<td>V4</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 %></td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V10</td>
|
||||
<td>V9</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 %></td>
|
||||
<td>V9</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 %></td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V6</td>
|
||||
<td>BYE</td>
|
||||
<td>V9</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
113
app/views/static_pages/_man8.html.erb
Normal file
113
app/views/static_pages/_man8.html.erb
Normal file
@@ -0,0 +1,113 @@
|
||||
<h1><%= @weight.max %> lbs Bracket</h1>
|
||||
<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 %></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. <%= @seed5.name %> <%= @seed5.season_win %>-<%= @seed5.season_loss %></td>
|
||||
<td>V4</td>
|
||||
<td>V1</td>
|
||||
<td>BYE</td>
|
||||
<td>V5</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4. <%= @seed7.name %> <%= @seed7.season_win %>-<%= @seed7.season_loss %></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 %></td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V1</td>
|
||||
<td>V3</td>
|
||||
<td>V4</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 %></td>
|
||||
<td>BYE</td>
|
||||
<td>V8</td>
|
||||
<td>V10</td>
|
||||
<td>V9</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>7. BYE</td>
|
||||
<td>V6</td>
|
||||
<td>V10</td>
|
||||
<td>V9</td>
|
||||
<td>BYE</td>
|
||||
<td>V8</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>8. <%= @seed6.name %> <%= @seed6.season_win %>-<%= @seed6.season_loss %></td>
|
||||
<td>V9</td>
|
||||
<td>V6</td>
|
||||
<td>BYE</td>
|
||||
<td>V10</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>9. <%= @seed8.name %> <%= @seed8.season_win %>-<%= @seed8.season_loss %></td>
|
||||
<td>V8</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 %></td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V6</td>
|
||||
<td>V8</td>
|
||||
<td>V9</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
113
app/views/static_pages/_man9.html.erb
Normal file
113
app/views/static_pages/_man9.html.erb
Normal file
@@ -0,0 +1,113 @@
|
||||
<h1><%= @weight.max %> lbs Bracket</h1>
|
||||
<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 %></td>
|
||||
<td>V2</td>
|
||||
<td>V3</td>
|
||||
<td>V5</td>
|
||||
<td>V4</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2. <%= @seed9.name %> <%= @seed9.season_win %>-<%= @seed9.season_loss %></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 %></td>
|
||||
<td>V4</td>
|
||||
<td>V1</td>
|
||||
<td>BYE</td>
|
||||
<td>V5</td>
|
||||
<td>V2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4. <%= @seed7.name %> <%= @seed7.season_win %>-<%= @seed7.season_loss %></td>
|
||||
<td>V3</td>
|
||||
<td>BYE</td>
|
||||
<td>V2</td>
|
||||
<td>V1</td>
|
||||
<td>V5</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5. <%= @seed4.name %> <%= @seed4.season_win %>-<%= @seed4.season_loss %></td>
|
||||
<td>BYE</td>
|
||||
<td>V2</td>
|
||||
<td>V1</td>
|
||||
<td>V3</td>
|
||||
<td>V4</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 %></td>
|
||||
<td>BYE</td>
|
||||
<td>V8</td>
|
||||
<td>V10</td>
|
||||
<td>V9</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>7. BYE</td>
|
||||
<td>V6</td>
|
||||
<td>V10</td>
|
||||
<td>V9</td>
|
||||
<td>BYE</td>
|
||||
<td>V8</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>8. <%= @seed6.name %> <%= @seed6.season_win %>-<%= @seed6.season_loss %></td>
|
||||
<td>V9</td>
|
||||
<td>V6</td>
|
||||
<td>BYE</td>
|
||||
<td>V10</td>
|
||||
<td>BYE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>9. <%= @seed8.name %> <%= @seed8.season_win %>-<%= @seed8.season_loss %></td>
|
||||
<td>V8</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 %></td>
|
||||
<td>BYE</td>
|
||||
<td>BYE</td>
|
||||
<td>V6</td>
|
||||
<td>V8</td>
|
||||
<td>V9</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1,3 +1,12 @@
|
||||
<% if @bracket_size = 10 %>
|
||||
<%= render 'man10' %>
|
||||
<% end %>
|
||||
<% if @bracket_size = 9 %>
|
||||
<%= render 'man9' %>
|
||||
<% end %>
|
||||
<% if @bracket_size = 8 %>
|
||||
<%= render 'man8' %>
|
||||
<% end %>
|
||||
<% if @bracket_size = 7 %>
|
||||
<%= render 'man7' %>
|
||||
<% end %>
|
||||
@@ -1,3 +1,4 @@
|
||||
<% @weights.each do |weight| %>
|
||||
<%= link_to "#{weight.max}" , "/static_pages/brackets?weight=#{weight.id}" %>
|
||||
<br>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user