From 6ad16b73f7fdc5943d9873b4f6fc376c9b296117 Mon Sep 17 00:00:00 2001 From: Her Email Date: Fri, 1 Dec 2023 18:09:49 -0500 Subject: [PATCH] add custom head --- boofilsic/settings.py | 2 ++ common/templates/common_libs.html | 1 + compose.yml | 1 + developer/views.py | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/boofilsic/settings.py b/boofilsic/settings.py index bb8d681a..2f073a11 100644 --- a/boofilsic/settings.py +++ b/boofilsic/settings.py @@ -33,6 +33,7 @@ NEODB_SITE_ICON=(str, "/s/img/logo.svg"), NEODB_USER_ICON=(str, "/s/img/avatar.svg"), NEODB_SITE_INTRO=(str, ""), + NEODB_SITE_HEAD=(str, ""), # Links in site footer NEODB_SITE_LINKS=(dict, {}), # Invite only mode @@ -163,6 +164,7 @@ "site_icon": env("NEODB_SITE_ICON"), "user_icon": env("NEODB_USER_ICON"), "site_intro": env("NEODB_SITE_INTRO"), + "site_head": env("NEODB_SITE_HEAD"), "site_links": [{"title": k, "url": v} for k, v in env("NEODB_SITE_LINKS").items()], } diff --git a/common/templates/common_libs.html b/common/templates/common_libs.html index 22722315..8a50d35d 100644 --- a/common/templates/common_libs.html +++ b/common/templates/common_libs.html @@ -55,3 +55,4 @@ +{{ site_head|safe }} diff --git a/compose.yml b/compose.yml index a6cd240a..a4942262 100644 --- a/compose.yml +++ b/compose.yml @@ -20,6 +20,7 @@ x-shared: NEODB_SITE_NAME: NEODB_SITE_DOMAIN: NEODB_SITE_INTRO: + NEODB_SITE_HEAD: NEODB_SITE_LOGO: NEODB_SITE_ICON: NEODB_USER_ICON: diff --git a/developer/views.py b/developer/views.py index 48994674..f85ecfb6 100644 --- a/developer/views.py +++ b/developer/views.py @@ -49,7 +49,7 @@ def form_valid(self, form): class ApplicationUpdate(BaseApplicationUpdate): def get_form_class(self): return modelform_factory( - get_application_model(), + get_application_model(), # type:ignore fields=( "name", "url",