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

8 lines
453 B
Plaintext

<% @matches.select{|m| m.finished == 1 && m.w1 && m.w2}.sort_by{|m| [ m.round, -m.bracket_position, m.weight.max ]}.each do |match| %>
<% if @round != match.round || @bracket_position != match.bracket_position %>
<p><strong><%= match.bracket_position %> Round: <%= match.round %></strong></p>
<% end %>
<p><%= match.all_results_text %></p>
<% @round = match.round %>
<% @bracket_position = match.bracket_position %>
<% end %>