1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-09 23:44:52 +00:00

Removed some logic from view for faster rendering

This commit is contained in:
2015-04-21 19:32:37 -04:00
parent 367381208a
commit 42b46cb670
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
<tr>
<th>Name</th>
<% until @matches.select{|m| m.round == @round}.blank? %>
<% if @round <= @weight.poolRounds(@matches) %>
<% if @round <= @pools %>
<th>R<%= @round %></th>
<% end %>
<% @round = @round + 1 %>
@@ -20,7 +20,7 @@
<td><%= w.original_seed %> <%= w.name %> <%= w.season_win %>-<%= w.season_loss %> <%= w.school.name %></td>
<% @round = 1 %>
<% until @matches.select{|m| m.round == @round}.blank? %>
<% if @round <= @weight.poolRounds(@matches) %>
<% if @round <= @pools %>
<td><%= w.boutByRound(@round,@matches) %><br>Result</td>
<% end %>
<% @round = @round + 1 %>