mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Break down wrestlers points on the show page
This commit is contained in:
@@ -10,6 +10,7 @@ class WrestlersController < ApplicationController
|
||||
def show
|
||||
@school = @wrestler.school
|
||||
@tournament = @wrestler.tournament
|
||||
@wrestler_points_calc = CalculateWrestlerTeamScore.new(@wrestler)
|
||||
end
|
||||
|
||||
# GET /wrestlers/new
|
||||
|
||||
@@ -33,6 +33,14 @@
|
||||
<strong>Total Team Points Scored:</strong>
|
||||
<%= @wrestler.totalTeamPoints %>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Points Breakdown:</strong></br>
|
||||
Pool Win Points (including BYE points): <%= @wrestler_points_calc.poolPoints %></br>
|
||||
Bracket Win Points: <%= @wrestler_points_calc.bracketPoints %></br>
|
||||
Bonus Points: <%= @wrestler_points_calc.bonusWinPoints %></br>
|
||||
Placement Points:<%= @wrestler_points_calc.placementPoints %></br>
|
||||
</p>
|
||||
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
Reference in New Issue
Block a user