From 8ab728e375a3ee3648cfab465c4395af3a1c1303 Mon Sep 17 00:00:00 2001 From: sg00dwin Date: Mon, 29 Mar 2021 14:37:57 -0400 Subject: [PATCH] Translation of login templates console 2535 story relates to https://github.com/openshift/oauth-server/pull/71 --- _includes/head.html | 9 ++++++++- _layouts/login.html | 18 +++++++++--------- _layouts/providers.html | 9 +++------ _ocp/errors.html | 1 - _ocp/login.html | 1 - _ocp/providers.html | 1 - _od/login.html | 1 - _od/providers.html | 1 - _okd/login.html | 1 - _okd/providers.html | 1 - _rosa/login.html | 1 - _rosa/providers.html | 1 - 12 files changed, 20 insertions(+), 25 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index c284721..5573fb7 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,5 +1,12 @@ - {{page.title}} - {{ collection.name }} + + {% if page.layout == 'errors' %} + {% raw %}{{ .Locale.Error }}{% endraw %} + {% else %} + {% raw %}{{ .Locale.Login }}{% endraw %} + {% endif %} + ยท {{ collection.name }} + {% if collection.label == 'okd' %} diff --git a/_layouts/login.html b/_layouts/login.html index 48f2ccf..39c38a1 100644 --- a/_layouts/login.html +++ b/_layouts/login.html @@ -8,12 +8,12 @@
{% include logos.html %}
-
+ {% raw %}
-
+
{% endraw %} diff --git a/_layouts/providers.html b/_layouts/providers.html index f759306..3e2b65b 100644 --- a/_layouts/providers.html +++ b/_layouts/providers.html @@ -11,22 +11,19 @@
- diff --git a/_ocp/errors.html b/_ocp/errors.html index 6353cd7..e201722 100644 --- a/_ocp/errors.html +++ b/_ocp/errors.html @@ -1,4 +1,3 @@ --- layout: errors -title: Error --- diff --git a/_ocp/login.html b/_ocp/login.html index 4d2fcb1..855a556 100644 --- a/_ocp/login.html +++ b/_ocp/login.html @@ -1,4 +1,3 @@ --- layout: login -title: Login --- diff --git a/_ocp/providers.html b/_ocp/providers.html index ea1e313..09ddd37 100644 --- a/_ocp/providers.html +++ b/_ocp/providers.html @@ -1,4 +1,3 @@ --- layout: providers -title: Login --- diff --git a/_od/login.html b/_od/login.html index 4d2fcb1..855a556 100644 --- a/_od/login.html +++ b/_od/login.html @@ -1,4 +1,3 @@ --- layout: login -title: Login --- diff --git a/_od/providers.html b/_od/providers.html index ea1e313..09ddd37 100644 --- a/_od/providers.html +++ b/_od/providers.html @@ -1,4 +1,3 @@ --- layout: providers -title: Login --- diff --git a/_okd/login.html b/_okd/login.html index 4d2fcb1..855a556 100644 --- a/_okd/login.html +++ b/_okd/login.html @@ -1,4 +1,3 @@ --- layout: login -title: Login --- diff --git a/_okd/providers.html b/_okd/providers.html index ea1e313..09ddd37 100644 --- a/_okd/providers.html +++ b/_okd/providers.html @@ -1,4 +1,3 @@ --- layout: providers -title: Login --- diff --git a/_rosa/login.html b/_rosa/login.html index 4d2fcb1..855a556 100644 --- a/_rosa/login.html +++ b/_rosa/login.html @@ -1,4 +1,3 @@ --- layout: login -title: Login --- diff --git a/_rosa/providers.html b/_rosa/providers.html index ea1e313..09ddd37 100644 --- a/_rosa/providers.html +++ b/_rosa/providers.html @@ -1,4 +1,3 @@ --- layout: providers -title: Login ---