This commit is contained in:
mb
2020-05-06 14:09:24 +02:00
parent 38ca189ddf
commit 2fc05a8294
2 changed files with 5 additions and 2 deletions

View File

@@ -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'))

View File

@@ -20,7 +20,7 @@
<h3 class="text-center panel-free-title">{{_('Log in to account') }}</h3>
{%- if config.SHIBBOLETH_ISACTIVE %}
{%- if config.SHIBBOLETH_ISACTIVE == 'True' %}
<div class="col">
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="btn btn-default btn-lg btn-block"
class="btn btn-outline-primary btn-block">