Add a default card image when no custom one exists (#23)

* Add a default card image when no custom one exists
* Add coming_soon.png source
* Use directly the svg source instead of the png raster
This commit is contained in:
2023-10-01 16:36:30 +02:00
committed by GitHub
parent a189646aa5
commit f4023f105f
6 changed files with 76 additions and 4 deletions

View File

@@ -80,6 +80,7 @@ TEMPLATES = [
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
"portal.context_processors.default_card_image",
],
},
},
@@ -148,6 +149,10 @@ COUNTRIES_OVERRIDE = {
"ZZ": "Freelance",
}
# Image used on cards without a custom image uploaded.
# The file must be placed in the root of the 'static' folder
DEFAULT_CARD_IMAGE = "coming_soon.svg"
DECODER_INTERFACES = [
(1, "NEM651"),
(2, "NEM652"),