Completa modulo Replay: S3, retention, sync YouTube e gestione società.
Streaming chunked da Garage, purge con delete YouTube, privacy sincronizzata, archivio club migliorato, retention 30/90 separata da stato abbonamento. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -67,6 +67,9 @@
|
||||
<strong class="replay-card__title"><%= rec.title_or_default %></strong>
|
||||
<p class="replay-card__meta">
|
||||
<%= match.team.club.name %> · <%= l_local(rec.recorded_at_or_fallback) %>
|
||||
<% if rec.source_platform_label != "—" %>
|
||||
· <span class="badge badge-wait" style="font-size:0.65rem;vertical-align:middle"><%= rec.source_platform_label %></span>
|
||||
<% end %>
|
||||
</p>
|
||||
<p class="replay-card__meta replay-card__meta--sub">
|
||||
<%= rec.views_label %>
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
<p class="replay-show__meta">
|
||||
<%= @match.team.club.name %> · <%= l_local(@recording.recorded_at_or_fallback) %>
|
||||
· <%= @recording.views_label %>
|
||||
<% if @recording.source_platform_label != "—" %>
|
||||
· <%= @recording.source_platform_label %>
|
||||
<% end %>
|
||||
</p>
|
||||
</header>
|
||||
|
||||
@@ -46,6 +49,22 @@
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% elsif @recording.ready? && @recording.youtube_watch_url.present? %>
|
||||
<div class="replay-show__player card">
|
||||
<div class="replay-video" style="position:relative;padding-bottom:56.25%;height:0;overflow:hidden;background:#000;border-radius:12px">
|
||||
<iframe src="https://www.youtube.com/embed/<%= @recording.youtube_video_id %>"
|
||||
title="<%= @recording.title_or_default %>"
|
||||
style="position:absolute;top:0;left:0;width:100%;height:100%;border:0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<div class="replay-show__details card">
|
||||
<p class="replay-show__details-line">
|
||||
Replay disponibile su YouTube (copia server non presente).
|
||||
<%= link_to "Apri su YouTube", @recording.youtube_watch_url, target: "_blank", rel: "noopener" %>
|
||||
</p>
|
||||
</div>
|
||||
<% elsif @recording.ready? %>
|
||||
<div class="card replay-show__status">
|
||||
<p>Il file video non è più disponibile (archivio rimosso o in migrazione).</p>
|
||||
|
||||
Reference in New Issue
Block a user