diff --git a/server.py b/server.py index b8568b5..e184549 100644 --- a/server.py +++ b/server.py @@ -610,6 +610,15 @@ def page_user_add(): return redirect(url_for('page_user_list')) +@app.route('/smedcs', methods=['GET']) +def page_smedcs(): + """Pagina che visualizza i credits del sito""" + if 'username' not in session: + return redirect(url_for('page_login')) + if request.method == 'GET': + return render_template("smedcs.htm", type="main", user=session["username"]) + + if __name__ == "__main__": # Se non esiste il database, crealo e inizializzalo! if not os.path.isfile("data.db"): diff --git a/templates/base.htm b/templates/base.htm index 60a2604..093b251 100644 --- a/templates/base.htm +++ b/templates/base.htm @@ -10,6 +10,12 @@ {% include 'nav.htm' %}