From 003e16305d7fdaf4162813e251c65e2e74aeeedc Mon Sep 17 00:00:00 2001 From: dcore94 Date: Fri, 8 Jan 2021 15:43:58 +0100 Subject: [PATCH] first share --- defaults/main.yml | 32 +++++++++++++++++ tasks/main.yml | 5 +++ templates/account/theme.properties.j2 | 2 ++ templates/admin/theme.properties.j2 | 2 ++ templates/email/theme.properties.j2 | 2 ++ templates/login/theme.properties | 52 +++++++++++++++++++++++++++ 6 files changed, 95 insertions(+) create mode 100644 defaults/main.yml create mode 100644 tasks/main.yml create mode 100644 templates/account/theme.properties.j2 create mode 100644 templates/admin/theme.properties.j2 create mode 100644 templates/email/theme.properties.j2 create mode 100644 templates/login/theme.properties diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..e2c67e9 --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,32 @@ +--- +git_theme_repository: "https://code-repo.d4science.org/gCubeSystem/d4science-keycloak-themes" + +parent_theme: d4science + +styles: +title_tag: "Gateway - Sign in" +favicon_url: "https://services.d4science.org/favicon.ico" +background_image: +content_style: + +logo_header_style: +logo_url: "https://services.d4science.org/image/layout_set_logo?img_id=32727" +logo_alt: "Gateway" +logo_style: "height: 50px;" +infrastructure_logo: "no" +infrastructure_logo_style: + +footer_style: + +terms_url: "https://next.d4science.org/terms-of-use" +cookie_policy_url: "https://next.d4science.org/cookie-policy" +privacy_policy_url: + +project_url: "https://next.d4science.org/" +project_description: "Go to {{ title_tag }} Gateway" + +EC_logo: "no" +EC_logo_style: "max-width: 35px;" +EC_logo_alt: "EU H2020 programme" + +footer: diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..d57ad7f --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,5 @@ +--- +- name: Git checkout + git: + repo: "https://code-repo.d4science.org/gCubeSystem/d4science-keycloak-themes" + dest: "/tmp" diff --git a/templates/account/theme.properties.j2 b/templates/account/theme.properties.j2 new file mode 100644 index 0000000..1685f9d --- /dev/null +++ b/templates/account/theme.properties.j2 @@ -0,0 +1,2 @@ + +parent={{ parent_theme }} diff --git a/templates/admin/theme.properties.j2 b/templates/admin/theme.properties.j2 new file mode 100644 index 0000000..1685f9d --- /dev/null +++ b/templates/admin/theme.properties.j2 @@ -0,0 +1,2 @@ + +parent={{ parent_theme }} diff --git a/templates/email/theme.properties.j2 b/templates/email/theme.properties.j2 new file mode 100644 index 0000000..1685f9d --- /dev/null +++ b/templates/email/theme.properties.j2 @@ -0,0 +1,2 @@ + +parent={{ parent_theme }} diff --git a/templates/login/theme.properties b/templates/login/theme.properties new file mode 100644 index 0000000..e4f76a9 --- /dev/null +++ b/templates/login/theme.properties @@ -0,0 +1,52 @@ +parent= {{ parent_theme }} + +{% if styles is defined and styles %} +styles={{ styles }} +{% endif %} + +titleTag={{ title_tag }} +favicon={{ favicon_url }} + +{% if background_image is defined and background_image %} +contentBGImg={{ background_image }} +{% endif %} + +{% if content_style is defined and content_style %} +contentStyle={{ content_style }} +{% endif %} + +{% if logo_header_style is defined and logo_header_style %} +contentStyle={{ logo_header_style }} +{% endif %} + +logoSrc={{ logo_url }} +logoAlt={{ logo_alt }} +{% if logo_style is defined and logo_style %} +logoStyle={{ logo_style }} +{% endif %} + +infrastructureLogo={{ infrastructure_logo }} +{% if infrastructure_logo_style is defined and infrastructure_logo_style %} +infrastructureLogoStyle={{ infrastructure_logo_style }} +{% endif %} + +{% if footer_style is defined and footer_style %} +footerStyle={{ footer_style }} +{% endif %} + +linkTerms={{ terms_url }} +linkCookies={{ cookie_policy_url }} +{% if privacy_policy_url is defined and privacy_policy_url %} +linkPrivacy={{ privacy_policy_url }} +{% endif %} + +linkProject={{ project_url}} +descrProject={{ project_description }} + +ECLogo={{ EC_logo }} +ECLogoStyle={{ EC_logo_style }} +ECLogoAlt={{ EC_logo_alt }} + +{% if footer is defined and footer %} +footerRow={{ footer }} +{% endif %}