% if @tournament.joinable_by?(current_user) %> <%= form_tag(tournament_path(@tournament), method: "put") do %> <%= current_user.name %><%= submit_tag("Join") %> <% end %> <% end %>
<%= @tournament.players.count %> have signed up. <%= @tournament.min_players_per_team * @tournament.min_teams_per_match %> needed.
<% if current_user.in_group?(:host) %>Game: <%= @tournament.id %>
Status: <%= @tournament.status %>
Min players per team: <%= @tournament.min_players_per_team %>
Max players per team: <%= @tournament.max_players_per_team %>
Min teams per match: <%= @tournament.min_teams_per_match %>
Max teams per match: <%= @tournament.max_teams_per_match %>
Set rounds: <%= @tournament.set_rounds %>
Randomized teams: <%= @tournament.randomized_teams %>
Status: <%= @tournament.status %>
<%= form_tag(tournaments_path.to_s + "/" + @tournament.id.to_s + "/edit", method: "get") do %> <% if @tournament.players.count > @tournament.min_players_per_team * @tournament.min_teams_per_match %> <%= submit_tag("Close Tournament Registration") %> <% else %> <%= submit_tag("Close Tournament Registration", disabled: true) %> <% end %> <% end %> <%= link_to 'Edit', edit_tournament_path(@tournament) %> | <%= link_to 'Back', tournaments_path %> <% end %>