From 795fba5ccf9449ff1d99fb60f72ba9dc24e93059 Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Fri, 3 Jan 2025 14:22:27 +0100 Subject: [PATCH] feat: use header config file cf georchestra/header#25 --- .../georchestra/cas/GeorchestraConfiguration.java | 12 +++--------- .../templates/georchestra/fragments/header.html | 4 +--- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/main/java/org/georchestra/cas/GeorchestraConfiguration.java b/src/main/java/org/georchestra/cas/GeorchestraConfiguration.java index 9837f84..f8dc68c 100644 --- a/src/main/java/org/georchestra/cas/GeorchestraConfiguration.java +++ b/src/main/java/org/georchestra/cas/GeorchestraConfiguration.java @@ -17,21 +17,15 @@ @Data public class GeorchestraConfiguration { - @Value( "${useLegacyHeader:false}" ) - boolean useLegacyHeader = false; + @Value( "${headerConfigFile:}" ) + String headerConfigFile; - @Value( "${headerUrl:/header/}" ) - String headerUrl; - - @Value("${headerHeight:90}") + @Value("${headerHeight:80}") String headerHeight; @Value("${headerScript:https://cdn.jsdelivr.net/gh/georchestra/header@dist/header.js}") String headerScript; - @Value("${logoUrl:https://www.georchestra.org/public/georchestra-logo.svg}") - String logoUrl; - @Value("${georchestraStylesheet:}") String georchestraStylesheet; diff --git a/src/main/resources/templates/georchestra/fragments/header.html b/src/main/resources/templates/georchestra/fragments/header.html index 387d5b7..2431889 100644 --- a/src/main/resources/templates/georchestra/fragments/header.html +++ b/src/main/resources/templates/georchestra/fragments/header.html @@ -13,9 +13,7 @@