From ac1cb4aab48702ec016c27da7b1dcdb01e26046d Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Fri, 23 Jun 2023 23:20:50 +0200 Subject: [PATCH] base.html --- main.py | 8 ++++---- templates/base.html | 9 +++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 4b2d28f..92be86b 100644 --- a/main.py +++ b/main.py @@ -61,8 +61,9 @@ def list(): text = "" for i in users: text = text + f'

{escape(i[1])}: {i[2]}

Change balance:



' - return ''' - + return ''' + {% extends 'base.html' %} + {% block content %} - {{ extends 'base.html' }}

1 Credit = 1,50 Euro

Search for User:


- ''' + text + 'Doumentation' + ''' + text + 'Doumentation {% block content %}' @app.route("/list/user", methods=['GET']) def user_info(): diff --git a/templates/base.html b/templates/base.html index 0044bb0..0925b8d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,8 +1,17 @@ + + + {% block title %} {% endblock %} - FlaskApp + + +
+
+ {% block content %} {% endblock %} +
\ No newline at end of file