1
0
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:
2017-12-13 11:12:23 -05:00
parent 7fb8e198ea
commit 181d56f12d
2 changed files with 11 additions and 2 deletions

View File

@@ -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

View File

@@ -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>