From 177927d399b03c9eabc3b5180ff59e02dcb587b8 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sun, 9 Oct 2022 03:02:35 +0200 Subject: [PATCH] Add repo_url --- advlabdb/routes.py | 5 ++++- podman/settings_example.ini | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/advlabdb/routes.py b/advlabdb/routes.py index e03562c..b7920f4 100644 --- a/advlabdb/routes.py +++ b/advlabdb/routes.py @@ -2,6 +2,7 @@ from flask import Blueprint, redirect, url_for from flask_login import current_user from flask_security.decorators import auth_required +from . import settings from .model_dependent_funs import active_semester_str bp = Blueprint("main", __name__, root_path="/", template_folder="templates") @@ -10,7 +11,9 @@ bp = Blueprint("main", __name__, root_path="/", template_folder="templates") @bp.app_context_processor def util_processor(): author_email = "mobitar@students.uni-mainz.de" - footer = f"

This website is still under development (beta release)! If you have any questions, find any bugs or want some feature, please write a formless email (german/english) to Mo Bitar: {author_email}. Feedback is also welcome :)


" + repo_url = settings["repo_url"] + + footer = f"This website is still under development (beta release)! If you have any questions, find any bugs or want some feature, please write a formless email (german/english) to Mo Bitar: {author_email}

AdvLabDB - Source code" return dict(active_semester_str=active_semester_str, current_user=current_user, footer=footer) diff --git a/podman/settings_example.ini b/podman/settings_example.ini index 38ed95d..ee5b294 100644 --- a/podman/settings_example.ini +++ b/podman/settings_example.ini @@ -1,3 +1,5 @@ [Settings] +repo_url = https://codeberg.org/Mo8it/AdvLabDB + CHECK_EMAIL_DELIVERABILITY = True SECURITY_PASSWORD_LENGTH_MIN = 15