<% cache ["up_matches", @tournament] do %> <%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}", :class=>"btn btn-default"%>

This page reloads every 30s


Upcoming Matches



<% @mats.each.map do |m| %> <% end %>
Mat On Mat On Deck In The Hole Warm Up
<%= m.name %> <% if m.unfinishedMatches.first %><%=m.unfinishedMatches.first.bout_number%>
<%= m.unfinishedMatches.first.w1_name %> vs. <%= m.unfinishedMatches.first.w2_name %><% end %>
<% if m.unfinishedMatches.second %><%=m.unfinishedMatches.second.bout_number%>
<%= m.unfinishedMatches.second.w1_name %> vs. <%= m.unfinishedMatches.second.w2_name %><% end %>
<% if m.unfinishedMatches.third %><%=m.unfinishedMatches.third.bout_number%>
<%= m.unfinishedMatches.third.w1_name %> vs. <%= m.unfinishedMatches.third.w2_name %><% end %>
<% if m.unfinishedMatches.fourth %><%=m.unfinishedMatches.fourth.bout_number%>
<%= m.unfinishedMatches.fourth.w1_name %> vs. <%= m.unfinishedMatches.fourth.w2_name %><% end %>


Matches not assigned



<% if @matches.size > 0 %> <% @matches.each.map do |m| %> <% end %> <% end %>
Round Bout Number Weight Class Matchup
Round <%= m.round %> <%= m.bout_number %> <%= m.weight_max %> lbs <%= m.w1_name %> vs. <%= m.w2_name %>

<% end %>