Re #44 - Broke the menu by accident, adding tests and fixing.

This commit is contained in:
dgtlmoon
2021-04-30 19:54:23 +10:00
parent 4953e253e9
commit 4164ad29e3
5 changed files with 30 additions and 11 deletions

View File

@@ -70,11 +70,10 @@ def main(argv):
@app.context_processor
def inject_version():
return dict(version=datastore.data['version_tag'])
@app.context_processor
def inject_new_version_available():
return dict(new_version_available=app.config['NEW_VERSION_AVAILABLE'])
return dict(version=datastore.data['version_tag'],
new_version_available=app.config['NEW_VERSION_AVAILABLE'],
has_password=datastore.data['settings']['application']['password'] != False
)
if ssl_mode:
# @todo finalise SSL config, but this should get you in the right direction if you need it.