<% if @tournament.joinable_by?(current_user) %> <%= form_tag(tournament_path(@tournament), method: "put") do %> <%= current_user.name %><%= submit_tag("Join") %> <% end %> <% end %> <% if current_user.in_group?(:host) %>

Game: <%= @tournament.game %>

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 %> <%= submit_tag("Close Tournament Registration") %> <% end %> <%= link_to 'Edit', edit_tournament_path(@tournament) %> | <%= link_to 'Back', tournaments_path %> <% end %>