You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by wa...@apache.org on 2020/10/28 22:18:43 UTC
[openoffice-org] branch main updated: Coded the ssi branding and
navigators. JsonSlurper failed. Now sets maps in the template.
This is an automated email from the ASF dual-hosted git repository.
wave pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openoffice-org.git
The following commit(s) were added to refs/heads/main by this push:
new d3fff42 Coded the ssi branding and navigators. JsonSlurper failed. Now sets maps in the template.
d3fff42 is described below
commit d3fff42d2e9c4cb4e7ed43fa2a6a9064cb6d8aba
Author: Dave Fisher <da...@davefisher.tech>
AuthorDate: Wed Oct 28 15:18:31 2020 -0700
Coded the ssi branding and navigators. JsonSlurper failed. Now sets maps in the template.
---
templates/ssi_paths.gsp | 159 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 159 insertions(+)
diff --git a/templates/ssi_paths.gsp b/templates/ssi_paths.gsp
index b7aacab..819a499 100644
--- a/templates/ssi_paths.gsp
+++ b/templates/ssi_paths.gsp
@@ -4,4 +4,163 @@
content.topnav='/topnav.html';
content.leftnav=null;
content.rightnav=null;
+
+ def brand = [:]
+ brand["/"] = "/brand.html"
+ brand["/af/"] = "/af/brand.html"
+ brand["/am/"] = "/am/brand.html"
+ brand["/ar/"] = "/ar/brand.html"
+ brand["/ast/"] = "/ast/brand.html"
+ brand["/bg/"] = "/bg/brand.html"
+ brand["/ca/"] = "/ca/brand.html"
+ brand["/cs/"] = "/cs/brand.html"
+ brand["/da/"] = "/da/brand.html"
+ brand["/de/"] = "/de/brand.html"
+ brand["/el/"] = "/el/brand.html"
+ brand["/es/"] = "/es/brand.html"
+ brand["/et/"] = "/et/brand.html"
+ brand["/eu/"] = "/eu/brand.html"
+ brand["/fi/"] = "/fi/brand.html"
+ brand["/fr/"] = "/fr/brand.html"
+ brand["/gd/"] = "/gd/brand.html"
+ brand["/gl/"] = "/gl/brand.html"
+ brand["/he/"] = "/he/brand.html"
+ brand["/hi/"] = "/hi/brand.html"
+ brand["/hu/"] = "/hu/brand.html"
+ brand["/hy/"] = "/hy/brand.html"
+ brand["/is/"] = "/is/brand.html"
+ brand["/it/"] = "/it/brand.html"
+ brand["/ja/"] = "/ja/brand.html"
+ brand["/kab/"] = "/kab/brand.html"
+ brand["/km/"] = "/km/brand.html"
+ brand["/ko/"] = "/ko/brand.html"
+ brand["/lt/"] = "/lt/brand.html"
+ brand["/nl/"] = "/nl/brand.html"
+ brand["/no/"] = "/no/brand.html"
+ brand["/om/"] = "/om/brand.html"
+ brand["/pl/"] = "/pl/brand.html"
+ brand["/pt-br/"] = "/pt-br/brand.html"
+ brand["/pt/"] = "/pt/brand.html"
+ brand["/ru/"] = "/ru/brand.html"
+ brand["/sk/"] = "/sk/brand.html"
+ brand["/sl/"] = "/sl/brand.html"
+ brand["/sr-cyrl/"] = "/sr-cyrl/brand.html"
+ brand["/sr-latn/"] = "/sr-latn/brand.html"
+ brand["/sr/"] = "/sr/brand.html"
+ brand["/sv/"] = "/sv/brand.html"
+ brand["/ta/"] = "/ta/brand.html"
+ brand["/th/"] = "/th/brand.html"
+ brand["/tr/"] = "/tr/brand.html"
+ brand["/uk/"] = "/uk/brand.html"
+ brand["/vi/"] = "/vi/brand.html"
+ brand["/xx/"] = "/xx/brand.html"
+ brand["/zh-cn/"] = "/zh-cn/brand.html"
+ brand["/zh-tw/"] = "/zh-tw/brand.html"
+ brand["/zh/"] = "/zh/brand.html"
+
+ def topnav = [:]
+ topnav["/"] = "/topnav.html"
+ topnav["/af/"] = "/af/topnav.html"
+ topnav["/am/"] = "/am/topnav.html"
+ topnav["/ar/"] = "/ar/topnav.html"
+ topnav["/ast/"] = "/ast/topnav.html"
+ topnav["/bg/"] = "/bg/topnav.html"
+ topnav["/ca/"] = "/ca/topnav.html"
+ topnav["/cs/"] = "/cs/topnav.html"
+ topnav["/da/"] = "/da/topnav.html"
+ topnav["/de/"] = "/de/topnav.html"
+ topnav["/el/"] = "/el/topnav.html"
+ topnav["/es/"] = "/es/topnav.html"
+ topnav["/et/"] = "/et/topnav.html"
+ topnav["/eu/"] = "/eu/topnav.html"
+ topnav["/fi/"] = "/fi/topnav.html"
+ topnav["/fr/"] = "/fr/topnav.html"
+ topnav["/gd/"] = "/gd/topnav.html"
+ topnav["/gl/"] = "/gl/topnav.html"
+ topnav["/he/"] = "/he/topnav.html"
+ topnav["/hi/"] = "/hi/topnav.html"
+ topnav["/hu/"] = "/hu/topnav.html"
+ topnav["/hy/"] = "/hy/topnav.html"
+ topnav["/is/"] = "/is/topnav.html"
+ topnav["/it/"] = "/it/topnav.html"
+ topnav["/ja/"] = "/ja/topnav.html"
+ topnav["/kab/"] = "/kab/topnav.html"
+ topnav["/km/"] = "/km/topnav.html"
+ topnav["/ko/"] = "/ko/topnav.html"
+ topnav["/l10n/"] = "/l10n/topnav.html"
+ topnav["/lt/"] = "/lt/topnav.html"
+ topnav["/nl/"] = "/nl/topnav.html"
+ topnav["/no/"] = "/no/topnav.html"
+ topnav["/om/"] = "/om/topnav.html"
+ topnav["/pl/"] = "/pl/topnav.html"
+ topnav["/pt-br/"] = "/pt-br/topnav.html"
+ topnav["/pt/"] = "/pt/topnav.html"
+ topnav["/ru/"] = "/ru/topnav.html"
+ topnav["/sk/"] = "/sk/topnav.html"
+ topnav["/sl/"] = "/sl/topnav.html"
+ topnav["/sr-cyrl/"] = "/sr-cyrl/topnav.html"
+ topnav["/sr-latn/"] = "/sr-latn/topnav.html"
+ topnav["/sr/"] = "/sr/topnav.html"
+ topnav["/sv/"] = "/sv/topnav.html"
+ topnav["/ta/"] = "/ta/topnav.html"
+ topnav["/th/"] = "/th/topnav.html"
+ topnav["/tr/"] = "/tr/topnav.html"
+ topnav["/uk/"] = "/uk/topnav.html"
+ topnav["/vi/"] = "/vi/topnav.html"
+ topnav["/xx/"] = "/xx/topnav.html"
+ topnav["/zh-cn/"] = "/zh-cn/topnav.html"
+ topnav["/zh-tw/"] = "/zh-tw/topnav.html"
+ topnav["/zh/"] = "/zh/topnav.html"
+
+ def leftnav = [:]
+ leftnav["/api/"] = "/api/leftnav.html"
+ leftnav["/da/product/"] = "/da/product/leftnav.html"
+ leftnav["/da/why/"] = "/da/why/leftnav.html"
+ leftnav["/de/product/"] = "/de/product/leftnav.html"
+ leftnav["/es/noticias/"] = "/es/noticias/leftnav.html"
+ leftnav["/es/participar/"] = "/es/participar/leftnav.html"
+ leftnav["/es/por-que/"] = "/es/por-que/leftnav.html"
+ leftnav["/es/producto/"] = "/es/producto/leftnav.html"
+ leftnav["/eu/product/"] = "/eu/product/leftnav.html"
+ leftnav["/eu/why/"] = "/eu/why/leftnav.html"
+ leftnav["/he/product/"] = "/he/product/leftnav.html"
+ leftnav["/he/why/"] = "/he/why/leftnav.html"
+ leftnav["/hu/product/"] = "/hu/product/leftnav.html"
+ leftnav["/hu/why/"] = "/hu/why/leftnav.html"
+ leftnav["/ko/product/"] = "/ko/product/leftnav.html"
+ leftnav["/l10n/"] = "/l10n/leftnav.html"
+ leftnav["/lt/product/"] = "/lt/product/leftnav.html"
+ leftnav["/lt/why/"] = "/lt/why/leftnav.html"
+ leftnav["/nl/product/"] = "/nl/product/leftnav.html"
+ leftnav["/nl/why/"] = "/nl/why/leftnav.html"
+ leftnav["/no/product/"] = "/no/product/leftnav.html"
+ leftnav["/no/why/"] = "/no/why/leftnav.html"
+ leftnav["/pl/product/"] = "/pl/product/leftnav.html"
+ leftnav["/pl/why/"] = "/pl/why/leftnav.html"
+ leftnav["/product/"] = "/product/leftnav.html"
+ leftnav["/pt/product/"] = "/pt/product/leftnav.html"
+ leftnav["/pt/why/"] = "/pt/why/leftnav.html"
+ leftnav["/ru/why/"] = "/ru/why/leftnav.html"
+ leftnav["/sr-cyrl/product/"] = "/sr-cyrl/product/leftnav.html"
+ leftnav["/sr-cyrl/why/"] = "/sr-cyrl/why/leftnav.html"
+ leftnav["/sr-latn/product/"] = "/sr-latn/product/leftnav.html"
+ leftnav["/sr-latn/why/"] = "/sr-latn/why/leftnav.html"
+ leftnav["/sv/product/"] = "/sv/product/leftnav.html"
+ leftnav["/tr/product/"] = "/tr/product/leftnav.html"
+ leftnav["/tr/why/"] = "/tr/why/leftnav.html"
+ leftnav["/why/"] = "/why/leftnav.html"
+ leftnav["/xx/product/"] = "/xx/product/leftnav.html"
+ leftnav["/xx/why/"] = "/xx/why/leftnav.html"
+
+ def rightnav = [:]
+ rightnav["/l10n/"]="/l10n/rightnav.html"
+
+ def n=content.ssi.length;
+ for (int i=0; i<n; i++ ) {
+ def key = content.ssi[i]
+ if ( brand[key] ) content.brand = brand[key];
+ if ( topnav[key] ) content.topnav = topnav[key];
+ if ( leftnav[key] ) content.leftnav = leftnav[key];
+ if ( rightnav[key] ) content.rightnav = rightnav[key];
+ }
%>
\ No newline at end of file