% cache ["#{@school.id}_school_show", @school] do %>
Name: <%= @school.name %> <% if can? :manage, @school %><%= link_to " Edit", edit_school_path(@school),:class=>"fas fa-edit" %><% end %>
Team Points Deducted: <%= @school.total_points_deducted %>
Score: <%= @school.score %>
Tournament: <%= @school.tournament.name %>
<%= link_to "#{@school.name} Stat Summary", "/schools/#{@school.id}/stats",:class=>"btn btn-sm btn-primary" %>(Click wrestler to see their score breakdown and match list)
| Name | Weight | Record/Seed Criteria | Seed | Team Points Scored | Extra? | Next Bout/Mat | <% if can? :manage, @school %><%= link_to " New Wrestler" , "/wrestlers/new?school=#{@school.id}", :class=>"fas fa-plus"%> | <% end %>
|---|---|---|---|---|---|---|---|
| <%= link_to "#{wrestler.name}", wrestler %> | <%= wrestler.weight.max %> | <%= wrestler.season_win %>-<%= wrestler.season_loss %> <%= wrestler.criteria %> | <%= wrestler.original_seed %> | <%= wrestler.total_team_points - wrestler.total_points_deducted %> | <% if wrestler.extra? == true %> Yes <% end %> | <%= wrestler.next_match_bout_number %> <%= wrestler.next_match_mat_name %> | <% if can? :manage, wrestler.school %><%= link_to '', edit_wrestler_path(wrestler),:class=>"fas fa-edit" %> <%= link_to '', wrestler, method: :delete, data: { confirm: "Are you sure you want to delete #{wrestler.name}? This will delete all of his matches." }, :class=>"fas fa-trash-alt" %> | <% end %>