From f75a72b1cf26796ef12429dfc1b483cf3af984d3 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Tue, 17 Dec 2024 13:56:36 +0100 Subject: views: remove col value from the dashboard template arguments Remove "col" argments from the render_template() invocation and set a good default value in the html template. --- ogcp/templates/dashboard.html | 10 +++++----- ogcp/views.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html index 3ec2cd8..6f3c2cc 100644 --- a/ogcp/templates/dashboard.html +++ b/ogcp/templates/dashboard.html @@ -93,7 +93,7 @@
-
+
{{ _('Disk stats') }} @@ -129,7 +129,7 @@
-
+
{{ _('Memory') }} @@ -165,7 +165,7 @@
-
+
{{ _('Swap') }} @@ -205,7 +205,7 @@
-
+
{{ _('Latest images') }} @@ -224,7 +224,7 @@
-
+
{{ _('ogLive images') }} diff --git a/ogcp/views.py b/ogcp/views.py index f6c1933..a624dab 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -535,7 +535,7 @@ def index(): dashboard_servers = {} timestamp = datetime.datetime.today() now = timestamp.strftime('%Y-%m-%d %H:%M:%S') - return render_template('dashboard.html', servers=dashboard_servers, now=now, colsize="6") + return render_template('dashboard.html', servers=dashboard_servers, now=now) @app.route('/login', methods=['GET', 'POST']) def login(): -- cgit v1.2.3-18-g5258