<% if (@match.status==1) %>
<% if (@tournament.players.include?(current_user) || @tournament.hosts.include?(current_user)) %>
<% @match.teams.each do |team| %>
<% team.users.collect{|u| u.user_name}.each do |k| %>
<%= k %>
<% end %>
<% end %>
<% end %>
<% end %>
<% if (@match.status==0) %>
<% if (@tournament.players.include?(current_user)) %>
<% @match.teams.each do |team| %>
<% team.users.collect{|u| u.user_name}.each do |k| %>
<%= k %>
<% end %>
<% end %>
<% elsif (@tournament.hosts.include?(current_user)) %>
<% end %>
<% end %>
<% unless @match.winner.nil? %>