Listing Tournaments

<% if @tournaments.length > 0 %> <% @tournaments.each do |tournament| %> <% end %>
Game Status Min players per team Max players per team Min teams per match Max teams per match Set rounds Randomized teams
<%= tournament.game %> <%= tournament.status %> <%= tournament.min_players_per_team %> <%= tournament.max_players_per_team %> <%= tournament.min_teams_per_match %> <%= tournament.max_teams_per_match %> <%= tournament.set_rounds %> <%= tournament.randomized_teams %> <%= link_to 'Show', tournament %> <%= link_to 'Edit', edit_tournament_path(tournament) %> <%= link_to 'Destroy', tournament, method: :delete, data: { confirm: 'Are you sure?' } %>
<% else %>

No tournaments going on right now... Why not start your own?

<% end %>
<%= link_to 'New Tournament', new_tournament_path, :class => "btn btn-warning btn-lg" %>