<% club_name = @match.team.club&.name %> <% content_for :title do %><%= t("live.show.title", club_name: club_name, team_name: @match.team.name, opponent_name: @match.opponent_name) %><% end %> <% content_for :meta_description do %><%= t( "live.show.meta_description", club_name: club_name, team_name: @match.team.name, opponent_name: @match.opponent_name, location: @match.location.present? ? t("live.show.meta_description_location", location: @match.location) : "" ) %><% end %> <% content_for :robots, @session.publicly_listed? ? "index, follow" : "noindex, nofollow" %> <% content_for :head do %> <% unless @stream_closed || @session.platform == "youtube" %> <% end %> <% end %>
<%= link_to t("live.show.back_to_all"), public_live_index_path, class: "back-link" %> <%= live_match_page_heading(@match) %> <% if @stream_closed %>

<%= t("live.show.stream_ended_title") %>

<%= t("live.show.stream_ended_body") %>

<% if @session.ended_at %>

<%= t("live.show.stream_ended_closed_at", date: l_local(@session.ended_at)) %>

<% end %>

<%= t("live.show.stream_ended_hint") %>

<%= link_to t("live.show.all_live_link"), public_live_index_path, class: "btn btn-secondary stream-ended-btn" %>
<% elsif @session.platform == "youtube" %>

<%= t("live.show.youtube_title") %>

<% if @session.youtube_watch_url.present? %>

<%= t("live.show.youtube_available_body") %>

<%= link_to t("live.show.youtube_watch_link"), @session.youtube_watch_url, class: "btn stream-ended-btn", target: "_blank", rel: "noopener" %> <% else %>

<%= t("live.show.youtube_preparing_body") %>

<% end %>

<%= t("live.show.youtube_hint") %>

<% else %>
<%= render "public/live/player_overlays", match: @match, session: @session %>
<% end %>