mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 18:56:48 +00:00
feature/Re-brand API Manager - fonts
This commit is contained in:
parent
8445f9a8ec
commit
e53e8930de
@ -107,7 +107,8 @@ TEMPLATES = [
|
||||
'base.context_processors.api_user_id',
|
||||
'base.context_processors.api_tester_url',
|
||||
'base.context_processors.portal_page',
|
||||
'base.context_processors.logo_url'
|
||||
'base.context_processors.logo_url',
|
||||
'base.context_processors.override_css_url'
|
||||
],
|
||||
},
|
||||
},
|
||||
@ -268,6 +269,7 @@ EXCLUDE_URL_PATTERN = []
|
||||
API_EXPLORER_APP_NAME = 'API Explorer'
|
||||
|
||||
LOGO_URL = 'https://static.openbankproject.com/images/OBP/favicon.png'
|
||||
OVERRIDE_CSS_URL = None
|
||||
|
||||
# Local settings can override anything in here
|
||||
try:
|
||||
|
||||
@ -28,6 +28,11 @@ def logo_url(request):
|
||||
return {'logo_url': settings.LOGO_URL}
|
||||
|
||||
|
||||
def override_css_url(request):
|
||||
"""Returns the configured OVERRIDE_CSS_URL"""
|
||||
return {'override_css_url': settings.OVERRIDE_CSS_URL}
|
||||
|
||||
|
||||
def api_username(request):
|
||||
"""Returns the API username/email of the logged-in user"""
|
||||
nametodisplay = 'not authenticated'
|
||||
|
||||
0
apimanager/base/static/css/override.css
Normal file
0
apimanager/base/static/css/override.css
Normal file
@ -13,6 +13,7 @@
|
||||
<link href="{% static 'css/base.css' %}" rel="stylesheet">
|
||||
<link href="{% static 'css/jsoneditor.min.css' %}" rel="stylesheet">
|
||||
<link href="{% static 'css/obpjsoneditor.css' %}" rel="stylesheet">
|
||||
<link href="{{ override_css_url }}" rel="stylesheet">
|
||||
{% block extracss %}{% endblock extracss %}
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@ -18,6 +18,7 @@ class HomeView(TemplateView):
|
||||
context.update({
|
||||
'API_HOST': settings.API_HOST,
|
||||
'logo_url': settings.LOGO_URL,
|
||||
'override_css_url': settings.OVERRIDE_CSS_URL,
|
||||
'directlogin_form': DirectLoginForm(),
|
||||
'gatewaylogin_form': GatewayLoginForm(),
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user