diff --git a/app/views/schools/show.html.erb b/app/views/schools/show.html.erb index a4362f2..ec78fc2 100644 --- a/app/views/schools/show.html.erb +++ b/app/views/schools/show.html.erb @@ -37,8 +37,8 @@ -<% cache ["#{@school.id}_school_show", @school] do %> <% @wrestlers.sort_by{|w| w.weight.max}.each do |wrestler| %> + <% cache ["#{wrestler.id}_school_show", @school] do %> <%= link_to "#{wrestler.name}", wrestler %> <%= wrestler.weight.max %> @@ -49,7 +49,9 @@ <%= wrestler.total_team_points - wrestler.total_points_deducted %> <% if wrestler.extra? == true %> Yes - <% end %> + <% end %> + + <% end %> <%= wrestler.next_match_bout_number %> <%= wrestler.next_match_mat_name %> <% if can? :manage, wrestler.school %> @@ -61,7 +63,7 @@ <% end %> -<% end %> + <% if can? :manage, @school %> <%= render 'baums_roster_import' %> <% end %>