Skip to content
Snippets Groups Projects
Verified Commit ab9f4fdb authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Make PWA settings customizable via constance

Advances #139
parent 98241f68
No related branches found
No related tags found
1 merge request!175Make PWA settings customizable via constance
Pipeline #954 passed with warnings
......@@ -369,6 +369,7 @@ CONSTANCE_ADDITIONAL_FIELDS = {
}
CONSTANCE_CONFIG = {
"SITE_TITLE": ("AlekSIS", _("Site title"), "char_field"),
"SITE_DESCRIPTION": (_("AlekSIS is a web-based school information system (SIS) which can be used to manage and/or publish organisational data of educational institutions."), _("Site description")),
"COLOUR_PRIMARY": ("#0d5eaf", _("Primary colour"), "colour_field"),
"COLOUR_SECONDARY": ("#0d5eaf", _("Secondary colour"), "colour_field"),
"MAIL_OUT_NAME": ("AlekSIS", _("Mail out name")),
......@@ -439,8 +440,8 @@ if _settings.get("celery.enabled", False):
INSTALLED_APPS += ("djcelery_email",)
EMAIL_BACKEND = "djcelery_email.backends.CeleryEmailBackend"
PWA_APP_NAME = "AlekSIS" # dbsettings
PWA_APP_DESCRIPTION = "AlekSIS – The free school information system" # dbsettings
PWA_APP_NAME = lazy_config("SITE_TITLE")
PWA_APP_DESCRIPTION = lazy_config("SITE_DESCRIPTION")
PWA_APP_THEME_COLOR = lazy_config("COLOUR_PRIMARY")
PWA_APP_BACKGROUND_COLOR = "#ffffff"
PWA_APP_DISPLAY = "standalone"
......
......@@ -4,8 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description"
content="{% blocktrans %}AlekSIS is a web-based school information system (SIS) which can be used to manage and/or publish organisational data of educational in titutions.{% endblocktrans %}">
<meta name="description" content="{{ config.SITE_DESCRIPTION }}">
{# Favicons #}
<link href="{% static "icons/favicon_16.png" %}" rel="icon" type="image/png" sizes="16x16">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment