From 8c6e43dfa88c05cf8c2c26332d3b7497a8e24b25 Mon Sep 17 00:00:00 2001 From: jcwimer Date: Tue, 17 Nov 2015 14:03:58 +0000 Subject: [PATCH] Adding wrestlers team points to show school page and wrestler show button --- app/views/schools/show.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/schools/show.html.erb b/app/views/schools/show.html.erb index 6ea54ed..6adc1da 100644 --- a/app/views/schools/show.html.erb +++ b/app/views/schools/show.html.erb @@ -39,10 +39,9 @@ Seed Record Seed Criteria + Team Points Scored Extra? - <% if tournament_permissions(@school.tournament) %> Actions - <% end %> @@ -57,16 +56,17 @@ <%= wrestler.season_win %>-<%= wrestler.season_loss %> <%= wrestler.criteria %> Win <%= wrestler.seasonWinPercentage %>% + <%= wrestler.totalTeamPoints - wrestler.totalDeductedPoints %> <% if wrestler.extra? == true %> Yes <% end %> + + <%= link_to 'Show', wrestler , :class=>"btn btn-default" %> <% if tournament_permissions(@school.tournament) %> - - <%= link_to 'Show', wrestler , :class=>"btn btn-default" %> <%= link_to 'Edit', edit_wrestler_path(wrestler),:class=>"btn btn-primary" %> <%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %> - - <% end %> + <% end %> + <% end %> <% end %>