move branding and app-enabled into theme context processor

This commit is contained in:
Laura Klünder 2024-09-16 21:19:19 +02:00
parent 99b0308253
commit ce88e5dd3c
2 changed files with 3 additions and 2 deletions

View file

@ -62,4 +62,7 @@ def theme(request):
'themes': themes,
'randomize_primary_color': active_theme['randomize_primary_color'],
'primary_color': primary_color,
'branding': settings.BRANDING,
'app_enabled': settings.APP_ENABLED,
}

View file

@ -192,8 +192,6 @@ def map_index(request, mode=None, slug=None, slug2=None, details=None, options=N
'bounds': json.dumps(Source.max_bounds(), separators=(',', ':')),
'levels': json.dumps(tuple((level.pk, level.short_label) for level in levels.values()), separators=(',', ':')),
'state': json.dumps(state, separators=(',', ':'), cls=DjangoJSONEncoder),
'branding': settings.BRANDING,
'app_enabled': settings.APP_ENABLED,
'tile_cache_server': settings.TILE_CACHE_SERVER,
'initial_level': settings.INITIAL_LEVEL,
'initial_bounds': json.dumps(initial_bounds, separators=(',', ':')) if initial_bounds else None,