mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Put weight class and school names on stats page
This commit is contained in:
@@ -131,10 +131,10 @@ class Match < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def list_w2_stats
|
||||
"#{w2_name}: #{w2_stat}"
|
||||
"#{w2_name} (#{wrestler2.school.name}): #{w2_stat}"
|
||||
end
|
||||
|
||||
def list_w1_stats
|
||||
"#{w1_name}: #{w1_stat}"
|
||||
"#{w1_name} (#{wrestler1.school.name}): #{w1_stat}"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Wrester</th>
|
||||
<th>Weight Class</th>
|
||||
<th>Bout</th>
|
||||
<th>Match Bracket Position</th>
|
||||
<th>Stats</th>
|
||||
@@ -20,7 +21,8 @@
|
||||
<% @school.wrestlers.each do |wrestler| %>
|
||||
<% wrestler.all_matches.each do |m| %>
|
||||
<tr>
|
||||
<td> <%= wrestler.name %>
|
||||
<td><%= wrestler.name %></td>
|
||||
<td><%= wrestler.weight.max %></td>
|
||||
<td><%= m.bout_number %></td>
|
||||
<td><%= m.bracket_position %></td>
|
||||
<td><%= m.list_w1_stats %><br><%= m.list_w2_stats %></td>
|
||||
|
||||
Reference in New Issue
Block a user