tweak app version

This commit is contained in:
Niklas Fiekas 2020-04-06 15:59:19 +02:00
parent eb1f078c0f
commit 8f85301236
2 changed files with 7 additions and 5 deletions

View file

@ -85,7 +85,7 @@ final class Env(
val isStage = config.get[Boolean]("app.stage")
val explorerEndpoint = config.get[String]("explorer.endpoint")
val tablebaseEndpoint = config.get[String]("explorer.tablebase.endpoint")
val appVersion = config.getOptional[String]("app.version") // if desired, generate conf/version.conf properly with command in .github/workflows/server.yml
val appVersion = config.getOptional[String]("app.version")
def net = common.netConfig

View file

@ -39,10 +39,12 @@ object help {
raw(~doc.getHtml("doc.content", resolver))
),
br,
st.section(cls := "box box-pad")(
h1("lila version"),
pre(env.appVersion)
),
env.appVersion map { appVersion =>
st.section(cls := "box box-pad")(
h1("lila version"),
pre(appVersion)
)
},
br,
st.section(cls := "box")(freeJs())
)