diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-12-17 13:56:36 +0100 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-12-17 16:04:23 +0100 |
commit | f75a72b1cf26796ef12429dfc1b483cf3af984d3 (patch) | |
tree | 3ba83971e53b347e3996f3c7e7d7fc443d6b25d8 | |
parent | 05cba727e05308ada6ef65950724c5dc8dca45e4 (diff) |
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.
-rw-r--r-- | ogcp/templates/dashboard.html | 10 | ||||
-rw-r--r-- | 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 @@ <div class="row"> <!-- disk stats --> - <div class="col-{{ colsize }}"> + <div class="col-6"> <div class="card text-center"> <div class="card-header"> {{ _('Disk stats') }} @@ -129,7 +129,7 @@ </div> <!-- Memory stats --> - <div class="col-{{ colsize }}"> + <div class="col-6"> <div class="card text-center"> <div class="card-header"> {{ _('Memory') }} @@ -165,7 +165,7 @@ </div> <!-- Swap stats --> - <div class="col-{{ colsize }}"> + <div class="col-6"> <div class="card text-center"> <div class="card-header"> {{ _('Swap') }} @@ -205,7 +205,7 @@ </div> <!-- latest images --> - <div class="col-{{ colsize }}"> + <div class="col-6"> <div class="card text-center"> <div class="card-header"> {{ _('Latest images') }} @@ -224,7 +224,7 @@ </div> <!-- ogLives --> - <div class="col-{{ colsize }}"> + <div class="col-6"> <div class="card text-center"> <div class="card-header"> {{ _('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(): |