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