% if can? :manage, @school %>
<%= link_to "Edit #{@school.name}", edit_school_path(@school),:class=>"btn btn-primary" %> |
<% end %>
<%= link_to "#{@school.name} Stat Summary", "/schools/#{@school.id}/stats",:class=>"btn btn-primary" %>
Name: <%= @school.name %>
Team Points Deducted: <%= @school.total_points_deducted %>
Score: <%= @school.score %>
Tournament: <%= @school.tournament.name %>
| Name | Weight | Seed | Team Points Scored | Extra? | Next Bout/Mat | Actions |
|---|---|---|---|---|---|---|
| <%= wrestler.name %> | <%= wrestler.weight.max %> | <%= 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 %> | <%= link_to 'Show', wrestler , :class=>"btn btn-default btn-sm" %> <% if can? :manage, wrestler.school %> <%= link_to 'Edit', edit_wrestler_path(wrestler),:class=>"btn btn-primary btn-sm" %> <%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger btn-sm" %> <% end %> |