diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html index 518ae20..0f022c3 100644 --- a/ogcp/templates/dashboard.html +++ b/ogcp/templates/dashboard.html @@ -11,6 +11,39 @@
+
+ Disk stats +
+
+ + +
Number of images
diff --git a/ogcp/views.py b/ogcp/views.py index 09454f7..e9a40c8 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -124,8 +124,9 @@ def index(): images_response = g.server.get('/images') images = images_response.json()['images'] images.sort(key=image_modified_date_from_str, reverse=True) + disk = images_response.json()['disk'] return render_template('dashboard.html', clients=clients, - images=images) + images=images, disk=disk) return render_template('base.html') @app.route('/login', methods=['GET', 'POST'])