Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #268 from cfpb/add-context-vars
Browse files Browse the repository at this point in the history
Add show_banner and show_mega_menu context vars to views
  • Loading branch information
Scott Cranfill authored Feb 1, 2021
2 parents fae22a5 + 0644d07 commit ea74520
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions retirement_api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}

Expand Down Expand Up @@ -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)

0 comments on commit ea74520

Please sign in to comment.