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 }}