summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorDaniel García Moreno <danigm@soleta.eu>2021-06-08 12:36:55 +0200
committerDaniel García Moreno <danigm@soleta.eu>2021-06-08 12:36:55 +0200
commit514fb84a565e8bc9eb550164d545fa72d77c2b38 (patch)
tree2afdc9b7a225cd9066ca11e77bcc862986fbe65e /ogcp/views.py
parent22dcea19ff74871b7200bfc7f976836f436c5342 (diff)
Add chart to dashboard
This patch adds an example chart using chartjs to the dashboard to show the disk usage. https://www.chartjs.org/docs/latest/getting-started/
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 5496daf..bb9eaeb 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -162,7 +162,7 @@ def index():
disk = images_response.json()['disk']
oglive_list = g.server.get('/oglive/list').json()
return render_template('dashboard.html', clients=clients,
- images=images, disk=disk,
+ images=images, disk=disk, colsize="6",
oglive_list=oglive_list)
@app.route('/login', methods=['GET', 'POST'])