mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 14:06:32 +02:00
remove widescreen context processor
This commit is contained in:
parent
8d74dc2844
commit
540b355cac
29 changed files with 37 additions and 39 deletions
|
@ -109,16 +109,6 @@ def portfolio_permissions(request):
|
|||
return portfolio_context
|
||||
|
||||
|
||||
def is_widescreen_mode(request):
|
||||
exclude_paths = ["/admin/"]
|
||||
|
||||
# Widescreen is now global for all pages EXCEPT admin
|
||||
is_excluded = any(exclude_path in request.path for exclude_path in exclude_paths)
|
||||
|
||||
# Return a dictionary with the widescreen mode status.
|
||||
return {"is_widescreen_mode": not is_excluded}
|
||||
|
||||
|
||||
def is_widescreen_centered(request):
|
||||
include_paths = [
|
||||
"/domains/",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue