Tutte le view marketing, legali, viewer, dashboard e admin usano t(); mailer utente-facing e flash localizzati; admin con LocaleResolver e selettore lingua. Co-authored-by: Cursor <cursoragent@cursor.com>
40 lines
1.5 KiB
ERB
40 lines
1.5 KiB
ERB
<h2><%= t("admin.sessions.show.title", id: @session.id) %></h2>
|
|
<p><%= t("admin.sessions.show.status_label") %> <strong><%= @session.status %></strong></p>
|
|
<% unless @session.terminal? %>
|
|
<p>
|
|
<%= button_to t("admin.sessions.show.stop_button"),
|
|
stop_admin_session_path(@session),
|
|
method: :post,
|
|
class: "admin-btn admin-btn--danger",
|
|
form: { data: { turbo_confirm: t("admin.sessions.show.stop_confirm") } } %>
|
|
</p>
|
|
<% end %>
|
|
<p><%= t("admin.sessions.show.match_label", team: @session.match.team.name, opponent: @session.match.opponent_name) %></p>
|
|
|
|
<%= render "admin/sessions/links", session: @session %>
|
|
|
|
<% if @session.youtube_broadcast_id %>
|
|
<p><%= t("admin.sessions.show.youtube_studio") %>: <a href="https://studio.youtube.com/video/<%= @session.youtube_broadcast_id %>/livestreaming" target="_blank" rel="noopener"><%= t("admin.sessions.show.broadcast") %></a></p>
|
|
<% end %>
|
|
<p><%= t("admin.sessions.show.rtmp_ingest") %> <code><%= @session.rtmp_ingest_url %></code></p>
|
|
|
|
<h3><%= t("admin.sessions.show.events_title") %></h3>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th><%= t("admin.sessions.show.table.type") %></th>
|
|
<th><%= t("admin.sessions.show.table.when") %></th>
|
|
<th><%= t("admin.sessions.show.table.meta") %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @events.each do |e| %>
|
|
<tr>
|
|
<td><%= e.event_type %></td>
|
|
<td><%= e.occurred_at %></td>
|
|
<td><%= e.metadata.to_json %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|