Carry the language through sign-in; warn when switching leaves the page; product-review copy fixes
CI / full-gate (push) Successful in 2m40s
CI / full-gate (push) Successful in 2m40s
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
<main>
|
||||
<h1><%= t("error.403.title") %></h1>
|
||||
<p><%= t("error.403.body") %></p>
|
||||
<%- include("partials/locale-switch", { up: false }) %>
|
||||
<p><a href="<%= localeHref("/") %>"><%= t("error.backHome") %></a></p>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<main>
|
||||
<h1><%= t("error.404.title") %></h1>
|
||||
<p><%= t("error.404.body") %></p>
|
||||
<%- include("partials/locale-switch", { up: false }) %>
|
||||
<p><a href="<%= localeHref("/") %>"><%= t("error.backHome") %></a></p>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<main>
|
||||
<h1><%= t("error.500.title") %></h1>
|
||||
<p><%= t("error.500.body") %></p>
|
||||
<%- include("partials/locale-switch", { up: false }) %>
|
||||
<p><a href="<%= localeHref("/") %>"><%= t("error.backHome") %></a></p>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<main>
|
||||
<h1><%= t("error.503.title") %></h1>
|
||||
<p><%= t("error.503.body") %></p>
|
||||
<%- include("partials/locale-switch", { up: false }) %>
|
||||
<p><a href="<%= localeHref("/login") %>"><%= t("error.tryAgain") %></a></p>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<main>
|
||||
<h1><%= t("error.flow.title") %></h1>
|
||||
<p><%= t("error.flow.body") %></p>
|
||||
<%- include("partials/locale-switch", { up: false }) %>
|
||||
<p><a href="<%= localeHref("/login") %>"><%= t("error.backToSignIn") %></a></p>
|
||||
<% if (locals.id) { %><p><small><%= t("error.reference", { id }) %></small></p><% } %>
|
||||
</main>
|
||||
|
||||
@@ -9,6 +9,12 @@
|
||||
<%- include("menu", {
|
||||
up: locals.up !== false,
|
||||
trigger: { class: "btn icon-btn", icon: "i-globe", label: t("locale.label") },
|
||||
items: [{ head: t("locale.label") }, ...choices.map((c) => ({ current: c.current, href: c.href, hreflang: c.tag, label: c.label, ownLocale: true }))],
|
||||
items: [
|
||||
{ head: t("locale.label") },
|
||||
...choices.map((c) => ({ current: c.current, href: c.href, hreflang: c.tag, label: c.label, ownLocale: true })),
|
||||
// This page can't be re-rendered in another language (its URL answers no GET), so switching
|
||||
// navigates away — and may leave a one-time secret behind. Say it before the click.
|
||||
...(locals.leavesPage ? [{ head: t("locale.leavesPage") }] : []),
|
||||
],
|
||||
}) %>
|
||||
<% } -%>
|
||||
|
||||
Reference in New Issue
Block a user