Aggiunge modulo Replay, Garage dev e YouTube a livello società.
Pipeline registrazione/upload con storage S3, archivio web e app, proxy replay per il browser, OAuth YouTube sulla pagina club (Premium Full) e footer legale. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -9,6 +9,18 @@
|
||||
|
||||
<%= render "admin/clubs/comped_form", club: @club, subscription: @subscription, return_to: admin_club_path(@club) %>
|
||||
|
||||
<% cred = @club.youtube_credential %>
|
||||
<p style="margin-top:16px">
|
||||
<strong>YouTube società:</strong>
|
||||
<% if cred %>
|
||||
<%= cred.channel_title.presence || cred.channel_id %> (collegato)
|
||||
<% elsif @teams.any? { |t| t.entitlements.premium_full? } %>
|
||||
<span class="muted">Premium Full — canale società non collegato (usa Match Live TV)</span>
|
||||
<% else %>
|
||||
<span class="muted">—</span>
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
<h3 style="font-size:1rem;margin-top:28px">Squadre</h3>
|
||||
<% if @teams.empty? %>
|
||||
<p class="muted">Nessuna squadra registrata.</p>
|
||||
@@ -18,32 +30,14 @@
|
||||
<tr>
|
||||
<th>Squadra</th>
|
||||
<th>Sport</th>
|
||||
<th>YouTube</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @teams.each do |team| %>
|
||||
<% yt = Youtube::TeamStatus.new(team) %>
|
||||
<tr>
|
||||
<td><strong><%= team.name %></strong></td>
|
||||
<td><%= team.sport %></td>
|
||||
<td>
|
||||
<% if yt.selectable? %>
|
||||
<% if yt.uses_platform_channel? %>
|
||||
<span style="color:#81c784">Match Live TV</span>
|
||||
<% if team.youtube_credential.blank? && team.entitlements.premium_full? %>
|
||||
<span class="muted"> (default Full)</span>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<span style="color:#81c784">✓ <%= yt.channel_title.presence || "Canale società" %></span>
|
||||
<% end %>
|
||||
<% elsif team.entitlements.youtube_enabled? %>
|
||||
<span class="muted">In configurazione</span>
|
||||
<% else %>
|
||||
—
|
||||
<% end %>
|
||||
</td>
|
||||
<td><%= link_to "Partite e dettagli", admin_team_path(team) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user