| Bout number | Bracket Position | Matchup | Finished? | |
|---|---|---|---|---|
| <%= match.bout_number %> | <%= match.bracket_position %> | <%= match.w1_bracket_name.html_safe %> vs <%= match.w2_bracket_name.html_safe %> | <%= match.finished %> | <%= link_to 'Show', match, :class=>"btn btn-default btn-sm" %> <%= link_to 'Edit Wrestlers', edit_match_path(match), :class=>"btn btn-primary btn-sm" %> <%= link_to 'Stat Match', "/matches/#{match.id}/stat", :class=>"btn btn-primary btn-sm" %> |
Total matches without byes: <%= @matches.select{|m| m.loser1_name != 'BYE' and m.loser2_name != 'BYE'}.size %>
Unfinished matches: <%= @matches.select{|m| m.finished != 1 and m.loser1_name != 'BYE' and m.loser2_name != 'BYE'}.size %>