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
|
def show
|
||||||
@school = @wrestler.school
|
@school = @wrestler.school
|
||||||
@tournament = @wrestler.tournament
|
@tournament = @wrestler.tournament
|
||||||
|
@wrestler_points_calc = CalculateWrestlerTeamScore.new(@wrestler)
|
||||||
end
|
end
|
||||||
|
|
||||||
# GET /wrestlers/new
|
# GET /wrestlers/new
|
||||||
|
|||||||
@@ -33,6 +33,14 @@
|
|||||||
<strong>Total Team Points Scored:</strong>
|
<strong>Total Team Points Scored:</strong>
|
||||||
<%= @wrestler.totalTeamPoints %>
|
<%= @wrestler.totalTeamPoints %>
|
||||||
</p>
|
</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>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
Reference in New Issue
Block a user