From ffb8fe1f4fb6b20956314380297894fc385d2a1a Mon Sep 17 00:00:00 2001 From: Neslihan Date: Mon, 22 Feb 2021 23:18:30 +0300 Subject: [PATCH] Create base html and inherit --- app/templates/base.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/templates/base.html b/app/templates/base.html index 8075e2e..302b54f 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -22,6 +22,25 @@ + {% with messages = get_flashed_messages() %} + {% if messages %} + + {% endif %} + {% endwith %} + {% block body %}{% endblock %} +
+ Microblog: + Home + {% if current_user.is_anonymous %} + Login + {% else %} + Logout + {% endif %} +