From 009ff7426f4b663719811a52ebbfff4ffbedafba Mon Sep 17 00:00:00 2001 From: Marcella Maki Date: Mon, 28 Oct 2024 15:50:43 -0400 Subject: [PATCH] Update favicon to be available when the default theme is disabled --- .../static/assets/favicons}/logo.ico | Bin kolibri/core/templatetags/core_tags.py | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) rename kolibri/{plugins/default_theme/static/assets/default_theme => core/static/assets/favicons}/logo.ico (100%) diff --git a/kolibri/plugins/default_theme/static/assets/default_theme/logo.ico b/kolibri/core/static/assets/favicons/logo.ico similarity index 100% rename from kolibri/plugins/default_theme/static/assets/default_theme/logo.ico rename to kolibri/core/static/assets/favicons/logo.ico diff --git a/kolibri/core/templatetags/core_tags.py b/kolibri/core/templatetags/core_tags.py index dc385bd08e3..3ba6f000203 100644 --- a/kolibri/core/templatetags/core_tags.py +++ b/kolibri/core/templatetags/core_tags.py @@ -65,7 +65,9 @@ def theme_favicon(): # Choose the first available .ico file. It's unlikely there's more than # one specified in the theme. - favicon_url = favicon_urls[0] if favicon_urls else static("assets/logo.ico") + favicon_url = ( + favicon_urls[0] if favicon_urls else static("assets/favicons/logo.ico") + ) return format_html('', favicon_url)