From 53ae04404b523a0e44e39fbbafc163749cbf8b09 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Wed, 15 May 2024 01:44:31 +0000 Subject: [PATCH 01/16] Changes on the nations server --- publichealth/settings/dev.py | 14 ++++++++++++-- publichealth/static/css/subsites.scss | 16 ++++++++++++++++ publichealth/templates/header.html | 16 +++++++++++++--- 3 files changed, 41 insertions(+), 5 deletions(-) diff --git a/publichealth/settings/dev.py b/publichealth/settings/dev.py index afa6a7d..e53fcf1 100644 --- a/publichealth/settings/dev.py +++ b/publichealth/settings/dev.py @@ -17,10 +17,20 @@ BASE_URL = 'http://localhost:8000' EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' +#DATABASES = { +# 'default': { +# 'ENGINE': 'django.db.backends.sqlite3', +# 'NAME': 'publichealth-dev.sqlite3', +# } +#} DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': 'publichealth-dev.sqlite3', + 'ENGINE': 'django.db.backends.postgresql_psycopg2', + 'NAME': 'publichealth', + 'CONN_MAX_AGE': 600, # number of seconds database connections should persist for + + # User, host and port can be configured by the PGUSER, PGHOST and + # PGPORT environment variables (these get picked up by libpq). } } diff --git a/publichealth/static/css/subsites.scss b/publichealth/static/css/subsites.scss index 488d854..ba117f8 100644 --- a/publichealth/static/css/subsites.scss +++ b/publichealth/static/css/subsites.scss @@ -49,6 +49,7 @@ html[lang='fr'] .site-ngo-allianz-ebk .navbar-brand { background-image: url('/static/org/NGO-Allianz_Logo-fr.jpg'); } + // -site-ngo-allianz-ebk // Custom styles for gesundheitsmanifest.ch @@ -61,3 +62,18 @@ html[lang='fr'] .site-ngo-allianz-ebk .navbar-brand { border-bottom: 1px solid #ddd; } } + +.site-dev-pro-salutech { + .navbar-brand { + width: 240px; + height: 64px; + background-size: contain !important; + background-repeat: no-repeat; + background-image: url('/static/images/pro-salute-logo.png'); + + font-size: 0px !important; + img { display: none !important; } + } + #carousel-banner .carousel-caption { display: none; } +} + diff --git a/publichealth/templates/header.html b/publichealth/templates/header.html index 2f4033f..7594be0 100644 --- a/publichealth/templates/header.html +++ b/publichealth/templates/header.html @@ -2,6 +2,9 @@ {% get_site_root as site_root %} {% get_site as the_site %} + +