mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-27 09:29:22 -04:00
Updated link name and route
This commit is contained in:
@@ -162,9 +162,11 @@ def _csp(config):
|
||||
|
||||
|
||||
def create_app(application):
|
||||
application.config['FEATURE_BEST_PRACTICES_ENABLED'] = os.getenv("FEATURE_BEST_PRACTICES_ENABLED", "false").lower() == "true"
|
||||
|
||||
@application.context_processor
|
||||
def inject_feature_flags():
|
||||
feature_best_practices_enabled = os.getenv("FEATURE_BEST_PRACTICES_ENABLED", "false").lower() == "true"
|
||||
feature_best_practices_enabled = application.config['FEATURE_BEST_PRACTICES_ENABLED']
|
||||
return dict(FEATURE_BEST_PRACTICES_ENABLED=feature_best_practices_enabled)
|
||||
|
||||
notify_environment = os.environ["NOTIFY_ENVIRONMENT"]
|
||||
|
||||
@@ -29,7 +29,7 @@ def using_notify_nav():
|
||||
},
|
||||
{
|
||||
"name": "Guides",
|
||||
"link": "main.guides",
|
||||
"link": "main.best_practices",
|
||||
},
|
||||
{
|
||||
"name": "Trial mode",
|
||||
|
||||
@@ -48,6 +48,7 @@ class HeaderNavigation(Navigation):
|
||||
},
|
||||
"guides": {
|
||||
"guides",
|
||||
"best-practies"
|
||||
},
|
||||
"using_notify": {
|
||||
"get_started",
|
||||
|
||||
@@ -6,7 +6,7 @@ header_navigation.is_selected('accounts-or-dashboard')},
|
||||
] %}
|
||||
|
||||
{% if FEATURE_BEST_PRACTICES_ENABLED %}
|
||||
{% set navigation = navigation + [{"href": url_for('main.guides'), "text": "Guides", "active":
|
||||
{% set navigation = navigation + [{"href": url_for('main.best_practices'), "text": "Guides", "active":
|
||||
header_navigation.is_selected('guides')}] %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user