mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-09-19 18:31:16 +00:00
Add repo_url
This commit is contained in:
parent
68335add60
commit
177927d399
2 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,7 @@ from flask import Blueprint, redirect, url_for
|
||||||
from flask_login import current_user
|
from flask_login import current_user
|
||||||
from flask_security.decorators import auth_required
|
from flask_security.decorators import auth_required
|
||||||
|
|
||||||
|
from . import settings
|
||||||
from .model_dependent_funs import active_semester_str
|
from .model_dependent_funs import active_semester_str
|
||||||
|
|
||||||
bp = Blueprint("main", __name__, root_path="/", template_folder="templates")
|
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
|
@bp.app_context_processor
|
||||||
def util_processor():
|
def util_processor():
|
||||||
author_email = "mobitar@students.uni-mainz.de"
|
author_email = "mobitar@students.uni-mainz.de"
|
||||||
footer = f"<hr><p style='font-size:14px;'>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: <a href='mailto:{author_email}'>{author_email}</a>. Feedback is also welcome :)</p><br>"
|
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: <a href='mailto:{author_email}'>{author_email}</a><br><br>AdvLabDB - <a href={repo_url} target='_blank' rel='noopener noreferrer'>Source code</a>"
|
||||||
|
|
||||||
return dict(active_semester_str=active_semester_str, current_user=current_user, footer=footer)
|
return dict(active_semester_str=active_semester_str, current_user=current_user, footer=footer)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
[Settings]
|
[Settings]
|
||||||
|
repo_url = https://codeberg.org/Mo8it/AdvLabDB
|
||||||
|
|
||||||
CHECK_EMAIL_DELIVERABILITY = True
|
CHECK_EMAIL_DELIVERABILITY = True
|
||||||
SECURITY_PASSWORD_LENGTH_MIN = 15
|
SECURITY_PASSWORD_LENGTH_MIN = 15
|
||||||
|
|
Loading…
Reference in a new issue