mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Made the all results page grouping better and fixed the advance wrestler job.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<% @matches.select{|m| m.finished == 1 && m.w1 && m.w2}.sort_by{|m| [ m.bout_number, m.bracket_position, m.weight.max ]}.each do |match| %>
|
||||
<% @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 %>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<br><br>
|
||||
<h3>
|
||||
<%= @tournament.name %> Info
|
||||
</h3>
|
||||
|
||||
Reference in New Issue
Block a user