Status: <%= @match.status %>

Tournament: <%= @match.tournament.id %>

Name: <%= @match.name %>

<% if (@tournament.hosts.include?(current_user) and @match.winner.nil?) %> <%= form_for([@tournament, @match], method: "put") do |f| %> <%= f.submit("Select winner") %> <% end %> <% end %> <% unless @match.winner.nil? %>

Winner: <%= @match.winner.users.collect{|u| u.user_name}.join(", ") %>

<% end %>