From 0644d0790341e1b99b012ed9d99309a6c4537c49 Mon Sep 17 00:00:00 2001 From: Scott Cranfill Date: Thu, 28 Jan 2021 17:37:54 -0500 Subject: [PATCH] Add show_banner and show_mega_menu context vars to views In conjunction with a forthcoming PR to consumerfinance.gov, these will enable the banner on Beta and requesting the Spanish mega menu explicitly instead of relying on a default. --- retirement_api/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/retirement_api/views.py b/retirement_api/views.py index c51283c..3032912 100644 --- a/retirement_api/views.py +++ b/retirement_api/views.py @@ -57,6 +57,8 @@ def claiming(request, es=False): "available_languages": ["en", "es"], "es": es, "language": language, + "show_banner": True, + "show_mega_menu": True, "about_view_name": "retirement_api:" + ("about_es" if es else "about"), } @@ -145,5 +147,7 @@ def about(request, language="en"): "available_languages": ["en", "es"], "es": es, "language": language, + "show_banner": True, + "show_mega_menu": True, } return render(request, "retirement_api/about.html", cdict)