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

Skip to content
Snippets Groups Projects
config.py 1.28 KiB
Newer Older
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 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."""

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"

# NOTE: Invenio-App-RDM currently (March 2021) doesn't support changing the view
#       functions, and only allows updating templates by putting the overrides
#       in the RDM instance...