fix show commit version on UI

This commit is contained in:
Tiago vasconcelos 2021-06-10 11:51:57 +01:00 committed by fiatjaf
parent 5dacf52bdb
commit 65a85e3612
2 changed files with 3 additions and 0 deletions

View File

@ -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()

View File

@ -86,6 +86,8 @@
<q-toolbar-title class="text-caption">
<strong>LN</strong>bits, free and open-source lightning
wallet/accounts system
<br />
<small>Commit version: {{LNBITS_VERSION}}</small>
</q-toolbar-title>
<q-space></q-space>
<q-btn