Completa i18n IT/EN/FR/DE/ES su sito pubblico, area autenticata e admin.
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>
This commit is contained in:
@@ -1,34 +1,36 @@
|
||||
<% if @team.club %>
|
||||
<p style="margin-bottom:16px"><%= link_to "← #{@team.club.name}", admin_club_path(@team.club) %></p>
|
||||
<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>Sport: <%= @team.sport %></p>
|
||||
<p><%= t("admin.teams.show.sport_label", sport: @team.sport) %></p>
|
||||
<% if @team.club %>
|
||||
<p>Società: <%= @team.club.name %> · <%= link_to "Replay squadra", admin_club_recordings_path(@team.club, team_id: @team.id) %> · <%= link_to "Pagamenti e fatture", admin_billing_path(club_id: @team.club.id) %></p>
|
||||
<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>
|
||||
YouTube:
|
||||
<%= t("admin.teams.show.youtube_label") %>
|
||||
<% if yt.selectable? %>
|
||||
<strong><%= yt.channel_title || "—" %></strong>
|
||||
<strong><%= yt.channel_title || t("admin.common.dash") %></strong>
|
||||
<% if yt.uses_platform_channel? %>
|
||||
(canale piattaforma<%= @team.entitlements.premium_full? && @team.club.youtube_credential.blank? ? ", default senza OAuth società" : "" %>)
|
||||
<%= 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 %>
|
||||
(canale società)
|
||||
<%= t("admin.teams.show.youtube_club_channel") %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
non pronto
|
||||
<%= t("admin.teams.show.youtube_not_ready") %>
|
||||
<% end %>
|
||||
</p>
|
||||
<% if @team.entitlements.premium_full? && @team.club.youtube_credential.blank? %>
|
||||
<p class="muted">
|
||||
Senza canale collegato, l’app usa il canale Match Live TV.
|
||||
<%= link_to "Collega canale (pagina società)", public_club_path(@team.club) %>.
|
||||
<%= 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>Partite</h3>
|
||||
<h3><%= t("admin.teams.show.matches_title") %></h3>
|
||||
<ul>
|
||||
<% @matches.each do |m| %>
|
||||
<li><%= m.opponent_name %> — <%= m.scheduled_at %></li>
|
||||
|
||||
Reference in New Issue
Block a user