mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 20:51:58 +00:00
* all python files are now formated with black NOTE: some configurations where necessary. flake8 line-length has to be set to 88 which is the default for black. but this was not enough some lines of black where formated longer then 88 characters. found flake8-bugbear with B950. with that and in combination with ignore=E501 it is possible to ignore long lines, but if there are lines to long it will still point it out. further also for isort some configuration was necessary REFERENCES: https://github.com/psf/black/blob/master/docs/compatible_configs.md#isort https://github.com/psf/black/blob/master/docs/compatible_configs.md#flake8 https://github.com/PyCQA/flake8-bugbear#opinionated-warnings * removed commented import statments Co-authored-by: Christoph Ladurner <christoph.ladurner@tugraz.at>
97 lines
2.9 KiB
Python
97 lines
2.9 KiB
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright (C) 2020 mojib wali.
|
|
#
|
|
# invenio-theme-tugraz is free software; you can redistribute it and/or
|
|
# modify it under the terms of the MIT License; see LICENSE file for more
|
|
# details.
|
|
|
|
"""invenio module for TUGRAZ theme."""
|
|
|
|
from flask_babelex import gettext as _
|
|
|
|
INVENIO_THEME_TUGRAZ_DEFAULT_VALUE = _("TU Graz Repository")
|
|
"""Default value for the application."""
|
|
|
|
INVENIO_THEME_TUGRAZ_BASE_TEMPLATE = "invenio_theme_tugraz/base.html"
|
|
"""TU Graz Default base template"""
|
|
|
|
INVENIO_THEME_TUGRAZ_ACCOUNT_BASE = "invenio_theme_tugraz/accounts/accounts_base.html"
|
|
"""TU Graz Default account base template"""
|
|
|
|
INVENIO_THEME_TUGRAZ_ICON = "images/icon_use.png"
|
|
"""icon used in login page"""
|
|
|
|
INVENIO_THEME_TUGRAZ_LOGIN_IMG = "images/login_logo.png"
|
|
"""TU Logo for forms"""
|
|
|
|
# Invenio-theme
|
|
# ============
|
|
# See https://invenio-theme.readthedocs.io/en/latest/configuration.html
|
|
#
|
|
THEME_LOGO = "images/tug_logo.png"
|
|
"""TU Graz logo"""
|
|
|
|
THEME_SEARCHBAR = False
|
|
"""Enable or disable the header search bar."""
|
|
|
|
THEME_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html"
|
|
"""TU Graz header template"""
|
|
|
|
THEME_FRONTPAGE = False
|
|
"""Use default frontpage."""
|
|
|
|
THEME_HEADER_LOGIN_TEMPLATE = "invenio_theme_tugraz/accounts/header_login.html"
|
|
"""login page header"""
|
|
|
|
THEME_FOOTER_TEMPLATE = "invenio_theme_tugraz/footer.html"
|
|
"""footer template"""
|
|
|
|
THEME_FRONTPAGE_TITLE = _("TU Graz Repository")
|
|
"""Frontpage title."""
|
|
|
|
THEME_SITENAME = _("Repository")
|
|
"""Site name."""
|
|
|
|
# Invenio-accounts
|
|
# ============
|
|
# See https://invenio-accounts.readthedocs.io/en/latest/configuration.html
|
|
|
|
# COVER_TEMPLATE = 'invenio_theme_tugraz/accounts/accounts_base.html'
|
|
"""Cover page template for login and sign up pages."""
|
|
|
|
SECURITY_LOGIN_USER_TEMPLATE = "invenio_theme_tugraz/accounts/login_user.html"
|
|
"""Login template"""
|
|
|
|
SECURITY_REGISTER_USER_TEMPLATE = "invenio_theme_tugraz/accounts/register_user.html"
|
|
"""Sigup template"""
|
|
|
|
# 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"))]
|
|
|
|
# Invenio-app-rdm
|
|
# =============
|
|
# See https://invenio-app-rdm.readthedocs.io/en/latest/configuration.html
|
|
SEARCH_UI_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html"
|
|
"""Search page's header template."""
|
|
|
|
DEPOSITS_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html"
|
|
"""Deposits header page's template."""
|
|
|
|
|
|
# Invenio-rdm-records
|
|
# =============
|
|
# See https://invenio-rdm-records.readthedocs.io/en/latest/configuration.html
|
|
# Uncomment below to override records landingpage.
|
|
# from invenio_rdm_records.config import RECORDS_UI_ENDPOINTS
|
|
# RECORDS_UI_ENDPOINTS["recid"].update(
|
|
# template="invenio_theme_tugraz/record_landing_page.html"
|
|
# )
|
|
"""override the default record landing page"""
|