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>
27 lines
1.3 KiB
ERB
27 lines
1.3 KiB
ERB
<% content_for :title, t("auth.invitation.meta_title") %>
|
|
<% content_for :meta_description, t("auth.invitation.meta_description") %>
|
|
<% content_for :robots, "noindex, nofollow" %>
|
|
|
|
<div class="card" style="max-width:480px">
|
|
<h1><%= raw t("auth.invitation.title_html", team_name: @invitation.team.name) %></h1>
|
|
<p><%= raw t("auth.invitation.role_notice_html", email: @invitation.email) %></p>
|
|
<p class="muted" style="font-size:0.9rem;margin-bottom:16px">
|
|
<%= raw t("auth.invitation.instructions_html", email: @invitation.email) %>
|
|
</p>
|
|
<% if logged_in? %>
|
|
<%= button_to t("auth.invitation.accept"), public_invitation_path(token: @token), method: :post, class: "btn btn-primary" %>
|
|
<% else %>
|
|
<p><%= raw t(
|
|
"auth.invitation.login_or_signup_html",
|
|
login_link: link_to(t("auth.invitation.login_link"), public_login_path),
|
|
signup_link: link_to(t("auth.invitation.signup_link"), public_signup_path),
|
|
email: @invitation.email
|
|
) %></p>
|
|
<%= button_to t("auth.invitation.accept_if_logged_in"), public_invitation_path(token: @token), method: :post, class: "btn btn-secondary" %>
|
|
<% end %>
|
|
<p style="margin-top:16px;font-size:0.88rem;color:#888">
|
|
<%= t("auth.invitation.mobile_app_label") %>
|
|
<a href="matchlivetv://join/<%= @token %>"><%= t("auth.invitation.open_in_app") %></a>
|
|
</p>
|
|
</div>
|