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>
39 lines
1.6 KiB
ERB
39 lines
1.6 KiB
ERB
<% if @team.club %>
|
|
<p style="margin-bottom:16px"><%= link_to t("admin.teams.show.back", club: @team.club.name), admin_club_path(@team.club) %></p>
|
|
<% end %>
|
|
|
|
<h2><%= @team.name %></h2>
|
|
<p><%= t("admin.teams.show.sport_label", sport: @team.sport) %></p>
|
|
<% if @team.club %>
|
|
<p><%= t("admin.teams.show.club_label_html",
|
|
club: @team.club.name,
|
|
replay_link: link_to(t("admin.teams.show.replay_link"), admin_club_recordings_path(@team.club, team_id: @team.id)),
|
|
billing_link: link_to(t("admin.teams.show.billing_link"), admin_billing_path(club_id: @team.club.id))) %></p>
|
|
<% end %>
|
|
<% yt = Youtube::TeamStatus.new(@team) %>
|
|
<p>
|
|
<%= t("admin.teams.show.youtube_label") %>
|
|
<% if yt.selectable? %>
|
|
<strong><%= yt.channel_title || t("admin.common.dash") %></strong>
|
|
<% if yt.uses_platform_channel? %>
|
|
<%= t("admin.teams.show.youtube_platform_channel", suffix: (@team.entitlements.premium_full? && @team.club.youtube_credential.blank? ? t("admin.teams.show.youtube_platform_default_no_oauth") : "")) %>
|
|
<% else %>
|
|
<%= t("admin.teams.show.youtube_club_channel") %>
|
|
<% end %>
|
|
<% else %>
|
|
<%= t("admin.teams.show.youtube_not_ready") %>
|
|
<% end %>
|
|
</p>
|
|
<% if @team.entitlements.premium_full? && @team.club.youtube_credential.blank? %>
|
|
<p class="muted">
|
|
<%= t("admin.teams.show.no_channel_hint_html", link: link_to(t("admin.teams.show.link_channel"), public_club_path(@team.club))) %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<h3><%= t("admin.teams.show.matches_title") %></h3>
|
|
<ul>
|
|
<% @matches.each do |m| %>
|
|
<li><%= m.opponent_name %> — <%= m.scheduled_at %></li>
|
|
<% end %>
|
|
</ul>
|