diff --git a/src/main/kotlin/org/dropProject/controllers/GlobalControllerAdvice.kt b/src/main/kotlin/org/dropProject/controllers/GlobalControllerAdvice.kt index 52785b7..724f8b4 100644 --- a/src/main/kotlin/org/dropProject/controllers/GlobalControllerAdvice.kt +++ b/src/main/kotlin/org/dropProject/controllers/GlobalControllerAdvice.kt @@ -37,6 +37,9 @@ class GlobalControllerAdvice { @Value("\${dropProject.admin.email}") val adminEmailProperty: String = "" + @Value("\${dropProject.footer.message:}") + val footerMessage: String = "" + @Autowired lateinit var buildProperties: BuildProperties @@ -75,6 +78,11 @@ class GlobalControllerAdvice { return dataSource!!.driverClassName == "org.h2.Driver" } + @ModelAttribute("footerMessage") + fun footerMessage() : String { + return footerMessage + } + @ModelAttribute("demoMode") fun isDemoMode() : Boolean { if (userDetailsManager != null && userDetailsManager is InMemoryUserDetailsManager) { diff --git a/src/main/resources/templates/layout/layout.html b/src/main/resources/templates/layout/layout.html index 27bdb89..9b9eef4 100644 --- a/src/main/resources/templates/layout/layout.html +++ b/src/main/resources/templates/layout/layout.html @@ -114,6 +114,7 @@
+