*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
config.py 1.36 KiB
Newer Older
# Copyright (C) 2020 - 2021 TU Wien.
#
# Invenio-Theme-TUW is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.

"""TU Wien theme for Invenio (RDM)."""

THEME_TUW_LOCAL_LOGIN_ENABLED = True
"""Controls whether or not to display the form fields for login via email/password."""
THEME_TUW_MATOMO_ENABLED = True
"""Controls whether or not to include the JS snippet for Matomo in the base template."""

THEME_TUW_MATOMO_URL = "http://s191.dl.hpc.tuwien.ac.at/"
"""The URL under which Matomo is reachable."""

APP_THEME = ["semantic-ui"]


# Invenio-Theme
# =============
# See https://invenio-theme.readthedocs.io/en/latest/configuration.html

# Name displayed in tab
THEME_SITENAME = "TU Data"

# Frontpage
THEME_FRONTPAGE = True
THEME_FRONTPAGE_TITLE = "TU Data"

# Templates
BASE_TEMPLATE = "invenio_theme_tuw/page.html"
THEME_FRONTPAGE_TEMPLATE = "invenio_theme_tuw/frontpage.html"
THEME_FOOTER_TEMPLATE = "invenio_theme_tuw/footer.html"

# Header logo
THEME_LOGO = "images/TU_Signet_white.png"

INSTANCE_THEME_FILE = "less/invenio_theme_tuw/theme.less"

# override the Invenio-OAuthClient login form
OAUTHCLIENT_LOGIN_USER_TEMPLATE = "invenio_theme_tuw/login/login_user.html"
ACCOUNTS_COVER_TEMPLATE = "invenio_theme_tuw/login/page_cover.html"

THEME_TUW_DISPLAY_STAGING_WARNING = True