remove widescreen context processor

This commit is contained in:
Rachid Mrad 2024-12-31 13:39:30 -05:00
parent 8d74dc2844
commit 540b355cac
No known key found for this signature in database
29 changed files with 37 additions and 39 deletions

View file

@ -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/",