Merge pull request #150 from ThomasRubini/hosting_info

This commit is contained in:
Thomas Rubini 2023-04-03 22:31:11 +02:00 committed by GitHub
commit d64737f55a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,8 @@ GAME_LIMIT=100
GAME_TIMEOUT=1800
ADMIN_PASSWORD="s0meV3ryL0ngP@sswOrd"
HOSTING_INFO="hosted at 'SomeProvider'"
# Database
DB_HOST=""
DB_PORT=3306

View File

@ -1,3 +1,5 @@
import os
import flask
routes_ui = flask.Blueprint("ui", __name__)
@ -20,7 +22,8 @@ def licenses():
@routes_ui.route("/legal")
def legal():
return flask.render_template("legal.html")
hosting_info = os.getenv("HOSTING_INFO")
return flask.render_template("legal.html", hosting_info=hosting_info)
@routes_ui.route("/docs")
def doc():

View File

@ -18,7 +18,7 @@
<body>
<h1 class="legal_text_title">Mentions légales</h1>
<div class="legal_text_block">
<p>Ce site web est hébergé par&nbsp;InovaPerf, dont l'adresse est 14 rue Charles-V 75004 Paris et dont le numéro de téléphone est 09 72 54 63 63.</p>
<p> {{ hosting_info }} </p>
</div>
<div class="legal_text_block">
<p>Le code de ce jeu est ouvert et disponible sous license MIT à l'adresse suivante&nbsp;: <a href="https://github.com/ThomasRubini/SAE-A2-TruthInquiry" target="_blank" title="Voir le dépôt de Truth Inquiry dans un nouvel onglet" class="legal_link">https://github.com/ThomasRubini/SAE-A2-TruthInquiry</a></p>