<%# Each tournament has a div for its listing %>
<% @tournaments.each do |t| %>
Gravatar of Host Goes Here
<%# "header" %>
<%= link_to(t) do %>
<%= t.name %>
<% end %>
Hosted by: <%= t.hosts.first.name %>
Players per team
two
<%# If this guy is logged in AND not in the tournament %>
<% if signed_in? && !t.players.include?(current_user) %>
<%= form_tag(tournament_path(t), method: "put") do %>
<%= submit_tag("Join") %>
<% end %>
<% else %>
You've signed up for this tournament!
<% end %>
<% end %>
<% else %>
No tournaments going on right now... Why not start your own?