From 65a85e3612a3a5076617b2986ef2d3b5b825f2e5 Mon Sep 17 00:00:00 2001 From: Tiago vasconcelos Date: Thu, 10 Jun 2021 11:51:57 +0100 Subject: [PATCH] fix show commit version on UI --- lnbits/app.py | 1 + lnbits/templates/base.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lnbits/app.py b/lnbits/app.py index 6137fdaf3..35852cd9b 100644 --- a/lnbits/app.py +++ b/lnbits/app.py @@ -108,6 +108,7 @@ def register_assets(app: QuartTrio): def register_filters(app: QuartTrio): """Jinja filters.""" app.jinja_env.globals["SITE_TITLE"] = app.config["LNBITS_SITE_TITLE"] + app.jinja_env.globals["LNBITS_VERSION"] = app.config["LNBITS_COMMIT"] app.jinja_env.globals["EXTENSIONS"] = get_valid_extensions() diff --git a/lnbits/templates/base.html b/lnbits/templates/base.html index 6f2246da6..1e39b6084 100644 --- a/lnbits/templates/base.html +++ b/lnbits/templates/base.html @@ -86,6 +86,8 @@ LNbits, free and open-source lightning wallet/accounts system +
+ Commit version: {{LNBITS_VERSION}}