<h2><%= @team.name %></h2>
<p>Sport: <%= @team.sport %></p>
<% if @team.club %>
  <p>Società: <%= @team.club.name %> · <%= link_to "Pagamenti e fatture", admin_billing_path(club_id: @team.club.id) %></p>
<% end %>
<p>YouTube: <%= @team.youtube_credential ? "Connesso" : link_to("Connetti", "/api/v1/teams/#{@team.id}/youtube/authorize") %></p>

<h3>Partite</h3>
<ul>
  <% @matches.each do |m| %>
    <li><%= m.opponent_name %> — <%= m.scheduled_at %></li>
  <% end %>
</ul>
