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,14 +1,14 @@
|
||||
<% content_for :title, "Dettagli — #{@team.name}" %>
|
||||
<% content_for :meta_description, "Dettagli squadra #{@team.name} su Match Live TV." %>
|
||||
<% content_for :title, t("team.details.title", name: @team.name) %>
|
||||
<% content_for :meta_description, t("team.details.meta_description", name: @team.name) %>
|
||||
<% content_for :robots, "noindex, nofollow" %>
|
||||
<% total_people = @roster_by_category.values.sum(&:size) %>
|
||||
|
||||
<div class="wrap team-roster-page">
|
||||
<nav class="team-dashboard-nav" aria-label="Percorso squadra">
|
||||
<nav class="team-dashboard-nav" aria-label="<%= t('team.details.nav_aria') %>">
|
||||
<% if @can_manage %>
|
||||
<%= link_to "← #{@club.name}", public_club_path(@club), class: "team-dashboard-nav__club" %>
|
||||
<span class="team-dashboard-nav__sep">·</span>
|
||||
<%= link_to "Modifica squadra", public_edit_team_path(@team) %>
|
||||
<%= link_to t("team.details.edit_team"), public_edit_team_path(@team) %>
|
||||
<% else %>
|
||||
<span class="team-dashboard-nav__club"><%= @club.name %></span>
|
||||
<% end %>
|
||||
@@ -19,24 +19,24 @@
|
||||
<p class="roster-hero__club"><%= @club.name %></p>
|
||||
<h1 class="roster-hero__title"><%= @team.name %></h1>
|
||||
<p class="team-details-meta">
|
||||
Piano: <strong><%= @entitlements.plan.name %></strong> (società)
|
||||
· Responsabili trasmissione: <strong><%= @entitlements.staff_count_for("transmission") %> / <%= @entitlements.max_staff_transmission || "∞" %></strong>
|
||||
· Partite attive: <strong><%= @entitlements.concurrent_streams_used %><% if @entitlements.concurrent_streams_limit %> / <%= @entitlements.concurrent_streams_limit %><% else %> (illimitate)<% end %></strong>
|
||||
<%= t("team.details.plan_label") %> <strong><%= @entitlements.plan.name %></strong> <%= t("team.details.plan_scope_club") %>
|
||||
· <%= t("team.details.staff_label") %> <strong><%= @entitlements.staff_count_for("transmission") %> / <%= @entitlements.max_staff_transmission || "∞" %></strong>
|
||||
· <%= t("team.details.active_matches_label") %> <strong><%= @entitlements.concurrent_streams_used %><% if @entitlements.concurrent_streams_limit %> / <%= @entitlements.concurrent_streams_limit %><% else %> (<%= t("team.details.unlimited") %>)<% end %></strong>
|
||||
</p>
|
||||
<% if @team.description.present? %>
|
||||
<div class="roster-hero__desc"><%= simple_format @team.description %></div>
|
||||
<% elsif @can_manage %>
|
||||
<p class="roster-hero__desc roster-hero__desc--muted">
|
||||
Nessuna descrizione.
|
||||
<%= link_to "Aggiungila dalla modifica squadra", public_edit_team_path(@team) %>.
|
||||
<%= t("team.details.no_description") %>
|
||||
<%= link_to t("team.details.add_description_link"), public_edit_team_path(@team) %>.
|
||||
</p>
|
||||
<% end %>
|
||||
<div class="roster-stats">
|
||||
<span class="roster-stat"><strong><%= total_people %></strong> in organico</span>
|
||||
<span class="roster-stat"><strong><%= total_people %></strong> <%= t("team.details.roster_count_label") %></span>
|
||||
<% TeamRosterMember::DISPLAY_ORDER.each do |cat| %>
|
||||
<% count = @roster_by_category[cat].size %>
|
||||
<% next if count.zero? %>
|
||||
<span class="roster-stat"><%= count %> <%= TeamRosterMember::CATEGORY_LABELS[cat].downcase %></span>
|
||||
<span class="roster-stat"><%= count %> <%= TeamRosterMember.category_label(cat).downcase %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
@@ -45,8 +45,8 @@
|
||||
<%= image_tag @team.team_photo_url, alt: @team.name, class: "roster-hero__photo" %>
|
||||
<% elsif @can_manage %>
|
||||
<div class="roster-hero__photo roster-hero__photo--empty">
|
||||
<span>Foto squadra non ancora caricata</span>
|
||||
<%= link_to "Aggiungi dalla modifica squadra", public_edit_team_path(@team), class: "btn btn-secondary", style: "margin-top:8px;padding:8px 14px;font-size:0.85rem" %>
|
||||
<span><%= t("team.details.no_photo") %></span>
|
||||
<%= link_to t("team.details.add_photo_link"), public_edit_team_path(@team), class: "btn btn-secondary", style: "margin-top:8px;padding:8px 14px;font-size:0.85rem" %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
@@ -54,14 +54,14 @@
|
||||
|
||||
<div class="team-details-actions">
|
||||
<% if @can_manage %>
|
||||
<%= link_to "← Società", public_club_path(@club), class: "btn btn-secondary" %>
|
||||
<%= link_to "Pagina pubblica", public_team_page_path(@team.slug), class: "btn btn-secondary", target: "_blank", rel: "noopener" %>
|
||||
<%= link_to "Responsabili trasmissione", public_team_invite_path(@team), class: "btn btn-secondary" %>
|
||||
<%= link_to t("club.back_to_club"), public_club_path(@club), class: "btn btn-secondary" %>
|
||||
<%= link_to t("team.details.public_page"), public_team_page_path(@team.slug), class: "btn btn-secondary", target: "_blank", rel: "noopener" %>
|
||||
<%= link_to t("team.details.streaming_managers"), public_team_invite_path(@team), class: "btn btn-secondary" %>
|
||||
<% end %>
|
||||
<% if current_user.can_stream_for?(@team) %>
|
||||
<%= link_to "Programma partite", public_team_matches_path(@team), class: "btn btn-primary" %>
|
||||
<%= link_to t("team.details.schedule_matches"), public_team_matches_path(@team), class: "btn btn-primary" %>
|
||||
<% end %>
|
||||
<%= link_to "Dirette live", public_live_index_path(club_id: @club.id), class: "btn btn-secondary" %>
|
||||
<%= link_to t("team.details.live_streams"), public_live_index_path(club_id: @club.id), class: "btn btn-secondary" %>
|
||||
</div>
|
||||
|
||||
<div class="roster-layout<%= " roster-layout--readonly" unless @can_manage %>">
|
||||
@@ -70,7 +70,7 @@
|
||||
<% members = @roster_by_category[category] %>
|
||||
<section class="roster-section card">
|
||||
<header class="roster-section__head">
|
||||
<h2 class="roster-section__title"><%= TeamRosterMember::CATEGORY_LABELS[category] %></h2>
|
||||
<h2 class="roster-section__title"><%= TeamRosterMember.category_label(category) %></h2>
|
||||
<span class="roster-section__count"><%= members.size %></span>
|
||||
</header>
|
||||
<% if members.any? %>
|
||||
@@ -80,14 +80,14 @@
|
||||
<% end %>
|
||||
</div>
|
||||
<% else %>
|
||||
<p class="roster-section__empty">Nessuna persona in questa categoria.</p>
|
||||
<p class="roster-section__empty"><%= t("team.details.no_people_in_category") %></p>
|
||||
<% end %>
|
||||
</section>
|
||||
<% end %>
|
||||
</section>
|
||||
|
||||
<% if @can_manage %>
|
||||
<aside class="roster-sidebar" aria-label="Aggiungi persona">
|
||||
<aside class="roster-sidebar" aria-label="<%= t('roster.member_form.new_heading') %>">
|
||||
<%= render "shared/roster_member_form", member: @roster_member, team: @team %>
|
||||
</aside>
|
||||
<% end %>
|
||||
@@ -95,8 +95,7 @@
|
||||
|
||||
<% if @can_manage && @entitlements.premium_full? && @entitlements.youtube_enabled? %>
|
||||
<p class="muted" style="margin:16px 0">
|
||||
Il canale YouTube della società si configura dalla pagina
|
||||
<%= link_to @club.name, public_club_path(@club) %> (sezione YouTube Live).
|
||||
<%= raw t("team.details.youtube_hint_html", club_link: link_to(@club.name, public_club_path(@club))) %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
@@ -105,5 +104,5 @@
|
||||
staff_memberships: @staff_memberships, pending_invitations: @pending_invitations,
|
||||
recordings: @recordings %>
|
||||
|
||||
<p class="team-details-footer">Usa l'app mobile con le stesse credenziali per avviare partite e dirette.</p>
|
||||
<p class="team-details-footer"><%= t("team.details.footer_note") %></p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user