04/16 Update the page footer
This commit is contained in:
@@ -100,10 +100,11 @@ def create_app() -> Flask:
|
||||
|
||||
@app.context_processor
|
||||
def inject_company_name():
|
||||
"""Make COMPANY_NAME and THEME_NAME available to all templates"""
|
||||
"""Make COMPANY_NAME, THEME_NAME, and CURRENT_YEAR available to all templates"""
|
||||
return {
|
||||
'COMPANY_NAME': os.environ.get('COMPANY_NAME', 'QR Code Management System'),
|
||||
'THEME_NAME': os.environ.get('THEME_NAME', ''),
|
||||
'CURRENT_YEAR': datetime.now().year,
|
||||
}
|
||||
|
||||
@app.context_processor
|
||||
|
||||
Reference in New Issue
Block a user