From 820b839af42a76950c22ecd3d4a038d591ca5ad5 Mon Sep 17 00:00:00 2001 From: Mateusz779 Date: Wed, 19 Apr 2023 09:43:00 +0200 Subject: [PATCH] fix --- app.py | 2 +- templates/index.html | 22 +++++++++++++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 99649ea..aef0521 100644 --- a/app.py +++ b/app.py @@ -24,7 +24,7 @@ def main(): if db.get_user_bytoken(auth_token) is None: return redirect("/login") machines_all = db.get_machines() - return render_template('index.html', ssh_port=config.webssh_port, table=machines_all) + return render_template('index.html', ssh_port=config.webssh_port, machines=machines_all) @app.route('/login') diff --git a/templates/index.html b/templates/index.html index 15f1374..d8301d4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -60,7 +60,27 @@

Lista maszyn

- {{table}} + + + + + + + + + + + + {% for machine in machines %} + + + + + + + + {% endfor %} +
Nazwa maszynyObrazCzas uruchomieniaIP uVPN
{{ machine.name }}{{ machine.image_name }}{{ machine.start_time }}{{ machine.ip }}