${pairgoth.env}
+ ${pairgoth.version}
${pairgoth.api.external.url}
${pairgoth.webapp.external.url}
${pairgoth.store}
diff --git a/view-webapp/src/main/kotlin/org/jeudego/pairgoth/web/WebappManager.kt b/view-webapp/src/main/kotlin/org/jeudego/pairgoth/web/WebappManager.kt
index e26e556..57c5ff0 100644
--- a/view-webapp/src/main/kotlin/org/jeudego/pairgoth/web/WebappManager.kt
+++ b/view-webapp/src/main/kotlin/org/jeudego/pairgoth/web/WebappManager.kt
@@ -64,11 +64,11 @@ class WebappManager : ServletContextListener, ServletContextAttributeListener, H
properties[(key as String).removePrefix(PAIRGOTH_PROPERTIES_PREFIX)] = value
}
- val env = properties.getProperty("env")
- logger.info("Using profile {}", )
+ logger.info("pairgoth server ${properties["version"]} with profile ${properties["env"]}")
- // let the view be aware of the environment
- context.setAttribute("env", env)
+ // publish some properties to the webapp context; for easy access from the template
+ context.setAttribute("env", properties["env"])
+ context.setAttribute("version", properties["version"] ?: "?")
// set system user agent string to empty string
System.setProperty("http.agent", "")
diff --git a/view-webapp/src/main/webapp/WEB-INF/layouts/standard.html b/view-webapp/src/main/webapp/WEB-INF/layouts/standard.html
index 0970051..81ee8df 100644
--- a/view-webapp/src/main/webapp/WEB-INF/layouts/standard.html
+++ b/view-webapp/src/main/webapp/WEB-INF/layouts/standard.html
@@ -60,7 +60,7 @@
@@ -81,13 +81,13 @@
-
-
-
+
+
+
-
+
#if($css)
-
+
#end