1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-02 04:35:26 +00:00

Calculated win percentage

This commit is contained in:
2015-02-06 10:31:47 -05:00
parent 5b8e90b50a
commit ffebffab55
4 changed files with 18 additions and 3 deletions

View File

@@ -51,7 +51,7 @@
<td><%= Weight.find(wrestler.weight_id).max %></td>
<td><%= wrestler.original_seed %></td>
<td><%= wrestler.season_win %>-<%= wrestler.season_loss %></td>
<td><%= wrestler.criteria %></td>
<td><%= wrestler.criteria %> Win <%= wrestler.seasonWinPercentage %>%</td>
<td><% if wrestler.extra? == true %>
Yes
<% end %></td>

View File

@@ -1,3 +1,7 @@
</br>
</br>
</br>
<%= link_to "Back to #{@tournament.name} weights", "/static_pages/weights?tournament=#{@tournament.id}" %>
<br>
<br>

View File

@@ -30,7 +30,7 @@
<td><%= School.find(wrestler.school_id).name %></td>
<td><%= wrestler.original_seed %></td>
<td><%= wrestler.season_win %>-<%= wrestler.season_loss %></td>
<td><%= wrestler.criteria %></td>
<td><%= wrestler.criteria %> Win <%= wrestler.seasonWinPercentage %>%</td>
<td><% if wrestler.extra? == true %>
Yes
<% end %></td>