mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Added new header button that is displayed in header
This commit is contained in:
@@ -173,6 +173,18 @@ def create_app(application):
|
||||
]
|
||||
return dict(FEATURE_BEST_PRACTICES_ENABLED=feature_best_practices_enabled)
|
||||
|
||||
@application.context_processor
|
||||
def inject_feature_flags():
|
||||
feature_best_practices_enabled = application.config[
|
||||
"FEATURE_ABOUT_PAGE_ENABLED"
|
||||
]
|
||||
return dict(FEATURE_ABOUT_PAGE_ENABLED=feature_best_practices_enabled)
|
||||
|
||||
@application.context_processor
|
||||
def inject_initial_signin_url():
|
||||
url = os.getenv("LOGIN_DOT_GOV_INITIAL_SIGNIN_URL")
|
||||
return {'initial_signin_url': url}
|
||||
|
||||
notify_environment = os.environ["NOTIFY_ENVIRONMENT"]
|
||||
|
||||
application.config.from_object(configs[notify_environment])
|
||||
|
||||
Reference in New Issue
Block a user