diff --git a/proxstar/__init__.py b/proxstar/__init__.py index b00a9b2..043c95a 100644 --- a/proxstar/__init__.py +++ b/proxstar/__init__.py @@ -197,7 +197,7 @@ def list_vms(user_view=None): vms.append(pending_vm) else: vms = 'INACTIVE' - return render_template('list_vms.html', user=user, rtp_view=False, vms=vms) + return render_template('list_vms.html', user=user, user_view=user_view, vms=vms) @app.route("/pools") def list_pools(): @@ -208,7 +208,7 @@ def list_pools(): abort(403) connect_proxmox() vms = get_pool_cache(db) - return render_template('list_vms.html', user=user, rtp_view=True, vms=vms) + return render_template('list_pools.html', user=user, rtp_view=True, vms=vms) @app.route('/isos') @auth.oidc_auth diff --git a/proxstar/templates/list_pools.html b/proxstar/templates/list_pools.html new file mode 100644 index 0000000..0eb5e62 --- /dev/null +++ b/proxstar/templates/list_pools.html @@ -0,0 +1,68 @@ +{% extends "base.html" %} +{% block body %} + +