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:
@@ -81,20 +81,37 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if entitlements.can_access_recordings? && recordings.any? %>
|
||||
<h2>Archivio gare</h2>
|
||||
<% if entitlements.can_access_recordings? %>
|
||||
<h2>Archivio replay</h2>
|
||||
<div class="card">
|
||||
<table class="data">
|
||||
<thead><tr><th>Partita</th><th>Replay</th></tr></thead>
|
||||
<tbody>
|
||||
<% recordings.each do |rec| %>
|
||||
<tr>
|
||||
<td><%= rec.stream_session.match.team.name %> vs <%= rec.stream_session.match.opponent_name %></td>
|
||||
<td><%= link_to "Guarda", rec.replay_url %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% if recordings.any? %>
|
||||
<table class="data">
|
||||
<thead><tr><th>Partita</th><th>Data</th><th>Durata</th><th>Scadenza</th><th>Stato</th><th></th></tr></thead>
|
||||
<tbody>
|
||||
<% recordings.each do |rec| %>
|
||||
<tr>
|
||||
<td><%= rec.title_or_default %></td>
|
||||
<td><%= l_local(rec.recorded_at_or_fallback) %></td>
|
||||
<td><%= rec.duration_label %></td>
|
||||
<td><%= rec.expires_at ? l_local(rec.expires_at) : "—" %></td>
|
||||
<td><%= rec.status_label %></td>
|
||||
<td>
|
||||
<% if rec.replay_url %>
|
||||
<%= link_to "Guarda", rec.replay_url, target: "_blank", rel: "noopener" %>
|
||||
<% else %>
|
||||
—
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<p style="margin-top:12px">
|
||||
<%= link_to "Gestisci tutti i replay", public_club_recordings_path(team.club) %>
|
||||
</p>
|
||||
<% else %>
|
||||
<p class="muted">Nessun replay ancora. Al termine delle dirette Premium le registrazioni compaiono qui.</p>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user