Merge pull request #138 from constantine2nd/master

Re-brand API Manager - LOGO
This commit is contained in:
Simon Redfern 2021-07-28 17:57:55 +02:00 committed by GitHub
commit 5cd759ada1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 11 deletions

View File

@ -226,7 +226,7 @@ API_MANAGER_DATE_FORMAT= '%Y-%m-%d'
API_HOST = 'http://127.0.0.1:8080'
# Only override this if you have a separate portal instance
API_PORTAL = None
API_PORTAL = API_HOST
API_BASE_PATH = '/obp/v'
API_VERSION = '4.0.0'
@ -266,6 +266,8 @@ EXCLUDE_URL_PATTERN = []
# App Name to aggregate metrics
API_EXPLORER_APP_NAME = 'API Explorer'
LOGO_URL = 'https://static.openbankproject.com/images/OBP/favicon.png'
# Local settings can override anything in here
try:
from apimanager.local_settings import * # noqa

View File

@ -33,7 +33,6 @@ footer a:hover, .footer a:focus {
.navbar-brand img {
width: 20px;
height: 20px;
}

View File

@ -25,7 +25,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{% url 'home' %}"><img src="https://static.openbankproject.com/images/OBP/favicon.png" alt="brand" /></a>
<a class="navbar-brand" href="{% url 'home' %}"><img src="{{ logo_url }}" alt="brand" /></a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">

View File

@ -65,13 +65,6 @@
</div>
</div>
{% endif %}
<div id="logo-full" class="row">
<div class="col-xs-1"></div>
<div class="col-xs-10">
<a href="https://openbankproject.com"><img class="img-responsive" src="https://static.openbankproject.com/images/OBP/OBP_full_web.png" alt="OBP logo" /></a>
</div>
<div class="col-xs-1"></div>
</div>
</div>
{% endblock %}

View File

@ -17,6 +17,7 @@ class HomeView(TemplateView):
context = super(HomeView, self).get_context_data(**kwargs)
context.update({
'API_HOST': settings.API_HOST,
'logo_url': settings.LOGO_URL,
'directlogin_form': DirectLoginForm(),
'gatewaylogin_form': GatewayLoginForm(),
})