Status: <%= @match.status %>
Tournament stage: <%= @match.tournament_stage %>
Winner: <%= @match.winner.users.collect{|u| u.user_name}.join(", ") %>
<% end %>Match is waiting to start.
<% end %> <% when 1 %> <% case @tournament.sampling_method %> <% when "Manual" %> <% if @tournament.hosts.include? current_user %> <% @match.teams.each do |team| %> <%= tag :input, {"type" => "radio", "name" => "winner", "value" => "#{team.id}" } %> <%= "Team #{team.id} Won" %> <% end %> <%= submit_tag("Finish match") %> <%= @tournament.settings['ScoringMethod'] %> <% else %>The match is running; the host has yet to post the scores of the match.
<% end %> <% when "Double Blind" %>Double Blind isn't implemented yet.
<% when "RiotAPI" %>Riot API is being called for Statistics. Results will appear shortly.
<% end %> <% when 2 %> <% users = []; @match.teams.each{|t| users.concat(t.users)}; %> <% if users.include? current_user %> <% @match.teams.each do |team| %> <% if team.users.include?(current_user) %>