1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-24 17:04:43 +00:00
Files
wrestlingdev.com/app/views/tournaments/team_scores.html.erb

19 lines
563 B
Plaintext

<% team_scores_last_updated = @schools.map(&:updated_at).compact.max&.utc&.to_fs(:nsec) %>
<% cache ["team_scores", @tournament.id, @schools.size, team_scores_last_updated] do %>
<table class="pagebreak table table-striped table-bordered">
<h3>Team Scores</h3>
<thead>
<tr>
<th>Name</th>
<th>Score</th>
</tr>
</thead>
<tbody>
<% @schools.each_with_index do |school, index| %>
<%= render "tournaments/team_score_row", school: school, rank: index + 1 %>
<% end %>
</tbody>
</table>
<% end %>