From 2fc05a8294fafc7aa7f398825e028d7d76cd0955 Mon Sep 17 00:00:00 2001 From: mb Date: Wed, 6 May 2020 14:09:24 +0200 Subject: [PATCH] issue #9 fix --- invenio_theme_tugraz/config.py | 5 ++++- .../templates/invenio_theme_tugraz/accounts/login.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/invenio_theme_tugraz/config.py b/invenio_theme_tugraz/config.py index e1656b0..35f8ce7 100644 --- a/invenio_theme_tugraz/config.py +++ b/invenio_theme_tugraz/config.py @@ -41,7 +41,7 @@ SECURITY_LOGIN_USER_TEMPLATE = 'invenio_theme_tugraz/accounts/login.html' # footer template THEME_FOOTER_TEMPLATE = 'invenio_theme_tugraz/footer.html' -# uncomment this to use the login with Tugraz @ login.html +# set True if SAML is configured. SHIBBOLETH_ISACTIVE = 'False' # icon used in login page @@ -59,6 +59,9 @@ MAIL_SUPPRESS_SEND = False # Invenio-I18N # ============ # See https://invenio-i18n.readthedocs.io/en/latest/configuration.html +BABEL_DEFAULT_LOCALE = 'en' +# Default time zone +BABEL_DEFAULT_TIMEZONE = 'Europe/Vienna' # Other supported languages (do not include BABEL_DEFAULT_LOCALE in list). I18N_LANGUAGES = [ ('de', _('German')) diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html index 8dd35de..c317ae4 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html @@ -20,7 +20,7 @@

{{_('Log in to account') }}

- {%- if config.SHIBBOLETH_ISACTIVE %} + {%- if config.SHIBBOLETH_ISACTIVE == 'True' %}