From 9ccea850c79cf1f8f5a8e2a2283d0f58a79dc294 Mon Sep 17 00:00:00 2001 From: Daniel Grams Date: Sun, 7 Jun 2020 19:44:09 +0200 Subject: [PATCH] Profile --- app.py | 5 +++++ templates/home.html | 2 +- templates/layout.html | 4 ++-- templates/profile.html | 9 +++++++++ translations/de/LC_MESSAGES/messages.mo | Bin 539 -> 562 bytes translations/de/LC_MESSAGES/messages.po | 6 +++++- 6 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 templates/profile.html diff --git a/app.py b/app.py index 1c1a556..102e275 100644 --- a/app.py +++ b/app.py @@ -60,5 +60,10 @@ def create_user(): def home(): return render_template('home.html') +@app.route("/profile") +@auth_required() +def profile(): + return render_template('profile.html') + if __name__ == '__main__': app.run() \ No newline at end of file diff --git a/templates/home.html b/templates/home.html index 606271e..11a7b7d 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,6 +1,6 @@ {% extends "layout.html" %} {% block title %} -Home +Prototyp {% endblock %} {% block content %} diff --git a/templates/layout.html b/templates/layout.html index 1ee719c..b87b241 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -49,11 +49,11 @@ {% if current_user.is_authenticated %}