mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 18:56:48 +00:00
bugfix/Re-brand API Manager - show logo at every page
This commit is contained in:
parent
666560660f
commit
8445f9a8ec
@ -106,7 +106,8 @@ TEMPLATES = [
|
||||
'base.context_processors.api_username',
|
||||
'base.context_processors.api_user_id',
|
||||
'base.context_processors.api_tester_url',
|
||||
'base.context_processors.portal_page'
|
||||
'base.context_processors.portal_page',
|
||||
'base.context_processors.logo_url'
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@ -23,6 +23,11 @@ def portal_page(request):
|
||||
return {'API_PORTAL': settings.API_PORTAL}
|
||||
|
||||
|
||||
def logo_url(request):
|
||||
"""Returns the configured LOGO_URL"""
|
||||
return {'logo_url': settings.LOGO_URL}
|
||||
|
||||
|
||||
def api_username(request):
|
||||
"""Returns the API username/email of the logged-in user"""
|
||||
nametodisplay = 'not authenticated'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user