Merge pull request #150 from ThomasRubini/hosting_info
This commit is contained in:
commit
d64737f55a
@ -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
|
||||
|
@ -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():
|
||||
|
@ -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 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 : <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>
|
||||
|
Loading…
Reference in New Issue
Block a user