Aggiunge i tornei con hub, pagina pubblica e tabellone per semifinali e finali.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 15:05:57 +02:00
co-authored by Cursor
parent d52434fb2e
commit a1f4c24a43
124 changed files with 6979 additions and 91 deletions
@@ -0,0 +1,32 @@
<div style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5; color: #1a1a1a; max-width: 560px;">
<% if @body_html.present? %>
<%= raw @body_html %>
<% else %>
<p style="margin: 0 0 16px;"><%= t("mailers.tournament_invite.hello") %></p>
<p style="margin: 0 0 16px;">
<%= raw t(
"mailers.tournament_invite.body_html",
inviter: @invited_by.name,
tournament: @tournament.name,
club: @club.name,
assignment: @invitation.scope_label
) %>
</p>
<% if @invitation.note.present? %>
<p style="margin: 0 0 16px;"><%= simple_format(@invitation.note) %></p>
<% end %>
<p style="margin: 0 0 16px;">
<a href="<%= @invite_url %>" style="display: inline-block; background: #e53935; color: #ffffff; text-decoration: none; padding: 12px 18px; border-radius: 8px; font-weight: 600;">
<%= t("mailers.tournament_invite.cta") %>
</a>
</p>
<p style="margin: 0 0 16px; color: #444; font-size: 14px;">
<%= t("mailers.tournament_invite.link_fallback") %><br>
<a href="<%= @invite_url %>" style="color: #e53935; word-break: break-all;"><%= @invite_url %></a>
</p>
<p style="margin: 0 0 16px;"><%= t("mailers.tournament_invite.steps") %></p>
<p style="margin: 0 0 16px;"><%= t("mailers.tournament_invite.expiry", date: @expires_on) %></p>
<p style="margin: 0 0 24px; color: #666;"><%= t("mailers.tournament_invite.ignore") %></p>
<% end %>
<p style="margin: 24px 0 0; color: #888; font-size: 12px;"><%= t("mailers.tournament_invite.footer", email: MatchLiveTv.privacy_controller_email) %></p>
</div>