Collegamento da Dettagli squadra e admin per il refresh token Match Live TV; API e app mobile allineate ai piani Light/Full. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
777 B
Plaintext
19 lines
777 B
Plaintext
<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 %>
|
|
<% yt = Youtube::TeamStatus.new(@team) %>
|
|
<p>YouTube: <%= yt.channel_title || "—" %> · <%= yt.selectable? ? "pronto" : "non pronto" %></p>
|
|
<% if @team.entitlements.plan.youtube_mode == "team" && @team.youtube_credential.blank? %>
|
|
<p><%= link_to "Collega (da account titolare sul sito)", public_team_details_path(@team) %></p>
|
|
<% end %>
|
|
<p><%= link_to "Token canale Match Live TV (Light)", admin_youtube_platform_path %></p>
|
|
|
|
<h3>Partite</h3>
|
|
<ul>
|
|
<% @matches.each do |m| %>
|
|
<li><%= m.opponent_name %> — <%= m.scheduled_at %></li>
|
|
<% end %>
|
|
</ul>
|