<%# If user is the host, let them start the tournment %>
<% if @tournament.hosts.include?(current_user) %>
<%= form_tag(tournament_match_path(@tournament, match), method: "put") do %>
<% @startable = (match.status == 0) and (match.teams.count >= @tournament.min_teams_per_match) %>
<%= submit_tag("Start Match", :disabled => ! @startable) %>
<% end %>
<% end %>
<% end %>
<% end %>
<% @tournament.stages_ordered.keys.sort.each do |stage_key| %>
<%= raw @tournament.stages_ordered[stage_key].to_svg(current_user) %>