diff --git a/.gitignore b/.gitignore index 71f1e1b17..8fda04acf 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ aplus/secret_key.py *.sublime-workspace venv/ +venv_aplus/ /static/ /media/ diff --git a/aplus/settings.py b/aplus/settings.py index b9a1e182c..94fe761ed 100644 --- a/aplus/settings.py +++ b/aplus/settings.py @@ -71,14 +71,22 @@ # local_templates/possible_path/template_name.html ########################################################################## SITEWIDE_ALERT_TEXT = None -SITEWIDE_ADVERT = None +SITEWIDE_ADVERT = { + 'not-before': '2025-01-01', # start showing on 1st + 'not-after': '2026-01-04', # last visible date is 3rd + 'title': {'en': "Advert", 'fi': "Mainos"}, + 'text': {'en': "We have open positions", + 'fi': "Meillä on paikkoja"}, + 'href': "https://apluslms.github.io", + 'image': "https://apluslms.github.io/assets/images/apluslogo.png", +} BRAND_NAME = 'A+' BRAND_NAME_LONG = 'Aplus' BRAND_DESCRIPTION = 'Virtual Learning Environment' BRAND_INSTITUTION_NAME = 'Aalto University' BRAND_INSTITUTION_NAME_FI = 'Aalto-yliopisto' -WELCOME_TEXT = 'Welcome to A+ modern learning environment' +WELCOME_TEXT = 'Welcome to A+ modern learning environment' SHIBBOLETH_TITLE_TEXT = 'Aalto University users' SHIBBOLETH_BODY_TEXT = ( 'Log in with your Aalto University user account by clicking on the button below. ' @@ -100,7 +108,7 @@ 'For additional information, please see the privacy notice.' ) -WELCOME_TEXT_FI = 'A+ verkkopohjainen oppimisympäristö' +WELCOME_TEXT_FI = 'A+ verkkopohjainen oppimisympäristö' SHIBBOLETH_TITLE_TEXT_FI = 'Aalto-yliopiston käyttäjät' SHIBBOLETH_BODY_TEXT_FI = ( 'Kirjaudu palveluun Aalto-yliopiston käyttäjätunnuksella alla olevasta painikkeesta. ' @@ -166,7 +174,7 @@ 'django.forms', # 3rd party applications - 'bootstrapform', + 'django_bootstrap5', 'rest_framework', 'rest_framework.authtoken', 'pylti1p3.contrib.django.lti1p3_tool_config', diff --git a/apps/templates/plugins/rss.html b/apps/templates/plugins/rss.html index 6d52c119b..0aaa4bdb3 100644 --- a/apps/templates/plugins/rss.html +++ b/apps/templates/plugins/rss.html @@ -1,4 +1,4 @@ -

{{ title }} [www] [rss]

+

{{ title }} [www] [rss]