Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix bug where logo-document is not renamed to logo-light

Unknown980e7fc197a7
diff --git a/saleor/core/emails.py b/saleor/core/emails.py
index dc43a18fd7..3bd0f6cf02 100644
--- a/saleor/core/emails.py
+++ b/saleor/core/emails.py
@@ -6,7 +6,7 @@ from ..core.utils import build_absolute_uri
def get_email_base_context():
site = Site.objects.get_current()
- logo_url = build_absolute_uri(static('images/logo-document.svg'))
+ logo_url = build_absolute_uri(static('images/logo-light.svg'))
return {
'domain': site.domain,
'logo_url': logo_url,
diff --git a/templates/base.html b/templates/base.html
index f9f67b180f..c396025ef9 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -119,7 +119,7 @@
<svg data-src="{% static "images/mobile-menu.svg" %}" width="28px" height="20px"/>
</div>
<a href="{% url 'home' %}">
- <svg data-src="{% static "images/logo-document.svg" %}"/>
+ <svg data-src="{% static "images/logo-light.svg" %}"/>
</a>
</div>
<div class="col-2 col-md-5 navbar__search static">
@@ -290,7 +290,7 @@
<div class="row">
<div class="col-4">
<a href="{% url 'home' %}" class="footer__logo float-md-left">
- <svg data-src="{% static "images/logo-document.svg" %}"/>
+ <svg data-src="{% static "images/logo-light.svg" %}"/>
</a>
</div>
<div class="col-8 footer__copy-text">COPYRIGHT © 2009–2019 MIRUMEE SOFTWARE</div>
diff --git a/templates/checkout/details.html b/templates/checkout/details.html
index c651fa4d91..7b14166df5 100644
--- a/templates/checkout/details.html
+++ b/templates/checkout/details.html
@@ -15,7 +15,7 @@
<header class="checkout__header">
<div class="container">
<a href="{% url 'home'%}">
- <svg data-src="{% static "images/logo-document.svg" %}" height="48px" width="176px" />
+ <svg data-src="{% static "images/logo-light.svg" %}" height="48px" width="176px" />
</a>
<h1>{% trans "Checkout" context "Checkout title" %}</h1>
</div>
diff --git a/templates/dashboard/order/pdf/base_pdf.html b/templates/dashboard/order/pdf/base_pdf.html
index 5918f6e012..49cd630a84 100644
--- a/templates/dashboard/order/pdf/base_pdf.html
+++ b/templates/dashboard/order/pdf/base_pdf.html
@@ -26,7 +26,7 @@
<body>
<header>
<div style="float: left">
- <img alt="logo" src="{% static "images/logo-document.svg" %}" />
+ <img alt="logo" src="{% static "images/logo-light.svg" %}" />
</div>
<div style="float: right">
diff --git a/templates/dashboard/styleguide/index.html b/templates/dashboard/styleguide/index.html
index 9f98998c14..2ab645dc76 100644
--- a/templates/dashboard/styleguide/index.html
+++ b/templates/dashboard/styleguide/index.html
@@ -28,7 +28,7 @@
<ul class="left">
<li class="logo">
<a href="{% url 'dashboard:index' %}">
- <svg data-src="{% static "dashboard/images/logo-document.svg" %}" height="38px" width="176px" />
+ <svg data-src="{% static "dashboard/images/logo-light.svg" %}" height="38px" width="176px" />
</a>
</li>
<li>
diff --git a/templates/styleguide.html b/templates/styleguide.html
index db7be68de2..a150766771 100644
--- a/templates/styleguide.html
+++ b/templates/styleguide.html
@@ -11,7 +11,7 @@
<header class="checkout__header">
<div class="container">
<a href="/">
- <svg data-src="{% static "images/logo-document.svg" %}" height="38px" width="176px" />
+ <svg data-src="{% static "images/logo-light.svg" %}" height="38px" width="176px" />
</a>
<h1>Style guide</h1>
</div>
diff --git a/tests/dashboard/test_customer.py b/tests/dashboard/test_customer.py
index bc71d67f65..35fbd5de90 100644
--- a/tests/dashboard/test_customer.py
+++ b/tests/dashboard/test_customer.py
@@ -165,7 +165,7 @@ def test_send_set_password_customer_email(customer_user, site_settings):
site = site_settings.site
uid = urlsafe_base64_encode(force_bytes(customer_user.pk)).decode()
token = default_token_generator.make_token(customer_user)
- logo_url = build_absolute_uri(static('images/logo-document.svg'))
+ logo_url = build_absolute_uri(static('images/logo-light.svg'))
password_set_url = build_absolute_uri(
reverse(
'account:reset-password-confirm',
diff --git a/tests/dashboard/test_staff.py b/tests/dashboard/test_staff.py
index 4caecf2c7b..900e168695 100644
--- a/tests/dashboard/test_staff.py
+++ b/tests/dashboard/test_staff.py
@@ -138,7 +138,7 @@ def test_send_set_password_email(staff_user, site_settings):
site = site_settings.site
uid = urlsafe_base64_encode(force_bytes(staff_user.pk)).decode()
token = default_token_generator.make_token(staff_user)
- logo_url = build_absolute_uri(static('images/logo-document.svg'))
+ logo_url = build_absolute_uri(static('images/logo-light.svg'))
password_set_url = build_absolute_uri(
reverse(
'account:reset-password-confirm',
diff --git a/tests/test_core.py b/tests/test_core.py
index 94cca19f46..94fed09771 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -260,8 +260,8 @@ def test_build_absolute_uri(site_settings, settings):
assert build_absolute_uri(location=url) == url
# Case when static url is resolved to relative url
- logo_url = build_absolute_uri(static('images/logo-document.svg'))
+ logo_url = build_absolute_uri(static('images/logo-light.svg'))
protocol = 'https' if settings.ENABLE_SSL else 'http'
current_url = '%s://%s' % (protocol, site_settings.site.domain)
- logo_location = urljoin(current_url, static('images/logo-document.svg'))
+ logo_location = urljoin(current_url, static('images/logo-light.svg'))
assert logo_url == logo_location
diff --git a/tests/test_emails.py b/tests/test_emails.py
index 73d4acd8dc..8857e5d9d0 100644
--- a/tests/test_emails.py
+++ b/tests/test_emails.py
@@ -11,7 +11,7 @@ from saleor.core.utils import build_absolute_uri
def test_get_email_base_context(site_settings):
site = site_settings.site
- logo_url = build_absolute_uri(static('images/logo-document.svg'))
+ logo_url = build_absolute_uri(static('images/logo-light.svg'))
proper_context = {
'domain': site.domain,
'logo_url': logo_url,