From 85e6fa329f3feab7153d28ab05de96ad0bd5c857 Mon Sep 17 00:00:00 2001 From: Wesley Bomar Date: Fri, 5 Jul 2024 18:13:13 -0500 Subject: [PATCH] fix: CMD-165 allow settings_local BRANDING --- taccsite_cms/_settings/branding.py | 29 +++++++++++++++++++++++++++++ taccsite_cms/settings.py | 28 +--------------------------- 2 files changed, 30 insertions(+), 27 deletions(-) create mode 100644 taccsite_cms/_settings/branding.py diff --git a/taccsite_cms/_settings/branding.py b/taccsite_cms/_settings/branding.py new file mode 100644 index 000000000..0a8d635df --- /dev/null +++ b/taccsite_cms/_settings/branding.py @@ -0,0 +1,29 @@ +"""Configure standard branding""" + +PORTAL_BRANDING_TACC = { + "is_remote": False, + "img_file_src": "site_cms/img/org_logos/tacc-white.png", + "img_class": "branding-tacc", + "link_href": "https://www.tacc.utexas.edu/", + "link_target": "_blank", + "img_alt_text": "TACC Logo", + "img_crossorigin": "anonymous", +} +PORTAL_BRANDING_UTEXAS = { + "is_remote": False, + "img_file_src": "site_cms/img/org_logos/utaustin-white.png", + "img_class": "branding-utaustin", + "link_href": "https://www.utexas.edu/", + "link_target": "_blank", + "img_alt_text": "University of Texas at Austin Logo", + "img_crossorigin": "anonymous", +} +PORTAL_BRANDING_NSF = { + "is_remote": False, + "img_file_src": "site_cms/img/org_logos/nsf-white.png", + "img_class": "branding-nsf", + "link_href": "https://www.nsf.gov/", + "link_target": "_blank", + "img_alt_text": "NSF Logo", + "img_crossorigin": "anonymous", +} diff --git a/taccsite_cms/settings.py b/taccsite_cms/settings.py index 9208d298e..ca71e3520 100644 --- a/taccsite_cms/settings.py +++ b/taccsite_cms/settings.py @@ -220,33 +220,7 @@ def gettext(s): return s # TACC: BRANDING ######################## -PORTAL_BRANDING_TACC = { - "is_remote": False, - "img_file_src": "site_cms/img/org_logos/tacc-white.png", - "img_class": "branding-tacc", - "link_href": "https://www.tacc.utexas.edu/", - "link_target": "_blank", - "img_alt_text": "TACC Logo", - "img_crossorigin": "anonymous", -} -PORTAL_BRANDING_UTEXAS = { - "is_remote": False, - "img_file_src": "site_cms/img/org_logos/utaustin-white.png", - "img_class": "branding-utaustin", - "link_href": "https://www.utexas.edu/", - "link_target": "_blank", - "img_alt_text": "University of Texas at Austin Logo", - "img_crossorigin": "anonymous", -} -PORTAL_BRANDING_NSF = { - "is_remote": False, - "img_file_src": "site_cms/img/org_logos/nsf-white.png", - "img_class": "branding-nsf", - "link_href": "https://www.nsf.gov/", - "link_target": "_blank", - "img_alt_text": "NSF Logo", - "img_crossorigin": "anonymous", -} +from taccsite_cms._settings.branding import * # To hide branding, set `PORTAL_BRANDING = False` PORTAL_BRANDING = [ PORTAL_BRANDING_TACC, PORTAL_BRANDING_UTEXAS ]