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>
41 lines
1.6 KiB
ERB
41 lines
1.6 KiB
ERB
<!DOCTYPE html>
|
|
<html lang="<%= I18n.locale %>">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="robots" content="noindex, nofollow">
|
|
<title><%= t("admin.youtube.platform_token.page_title") %></title>
|
|
<style>
|
|
body { font-family: system-ui, sans-serif; background: #0a0a0e; color: #f0f0f5; margin: 0; padding: 32px 20px; line-height: 1.5; }
|
|
.wrap { max-width: 720px; margin: 0 auto; }
|
|
h1 { font-size: 1.5rem; margin: 0 0 16px; }
|
|
pre { background: #111; color: #eee; padding: 12px; overflow: auto; border-radius: 8px; word-break: break-all; }
|
|
.muted { color: #999; }
|
|
a { color: #ff6b6b; }
|
|
.ok { color: #81c784; font-weight: 600; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="wrap">
|
|
<h1><%= t("admin.youtube.platform_token.title") %></h1>
|
|
|
|
<% if @channel_title.present? %>
|
|
<p><%= t("admin.youtube.platform_token.channel_label", title: @channel_title) %></p>
|
|
<% end %>
|
|
|
|
<% if @refresh_token.present? %>
|
|
<p class="ok"><%= t("admin.youtube.platform_token.success") %></p>
|
|
<p><%= t("admin.youtube.platform_token.env_hint_html") %></p>
|
|
<pre id="yt-token">YOUTUBE_PLATFORM_REFRESH_TOKEN=<%= @refresh_token %></pre>
|
|
<p class="muted"><%= t("admin.youtube.platform_token.not_shown_again_html") %></p>
|
|
<% else %>
|
|
<p class="muted">
|
|
<%= t("admin.youtube.platform_token.no_refresh_token_html") %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<p><a href="/admin/"><%= t("admin.youtube.platform_token.back_dashboard") %></a></p>
|
|
</div>
|
|
</body>
|
|
</html>
|