From 8536ef00a4da6170351ebd759275de5d6968791e Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Sat, 2 Apr 2022 16:26:30 +0200 Subject: [PATCH] Host license image with website instead of hotlinking and use svg instead of png This fixes an issue where the CORS headers for the website would not allow the image to be loaded from the Creative Commons servers. The switch to svg also makes sure that the icon will always be perfectly rendered, regardless of screen size or page zooming. --- .../copyright/cc-by-nc-nd-4.0-small.svg | 121 ++++++++++++++++++ templates/base.html | 2 +- 2 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 static/images/copyright/cc-by-nc-nd-4.0-small.svg diff --git a/static/images/copyright/cc-by-nc-nd-4.0-small.svg b/static/images/copyright/cc-by-nc-nd-4.0-small.svg new file mode 100644 index 0000000..79a4f2e --- /dev/null +++ b/static/images/copyright/cc-by-nc-nd-4.0-small.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/templates/base.html b/templates/base.html index 655e9ca..6ea6572 100644 --- a/templates/base.html +++ b/templates/base.html @@ -70,7 +70,7 @@ id="licenseimg" alt="CC BY-NC-ND 4.0" title="CC BY-NC-ND 4.0" - src="https://licensebuttons.net/l/by-nc-nd/4.0/80x15.png" + src="/images/copyright/cc-by-nc-nd-4.0-small.svg" /> (unless otherwise specified)