From d4d5c15566aecc12844843b2cacced35a1184f10 Mon Sep 17 00:00:00 2001
From: Michael Pimmer
Date: Mon, 29 Oct 2018 10:11:30 +0000
Subject: [PATCH] Backups: show free disk space on upload+restore page
Reviewed-by: James Valleroy
---
.../backups/templates/backups_upload.html | 5 +++-
plinth/modules/backups/views.py | 13 +++++++++-
plinth/modules/storage/__init__.py | 21 ++++++++++++++-
plinth/modules/storage/views.py | 26 +++++++------------
4 files changed, 46 insertions(+), 19 deletions(-)
diff --git a/plinth/modules/backups/templates/backups_upload.html b/plinth/modules/backups/templates/backups_upload.html
index 4c75fc10c..51a6a8efb 100644
--- a/plinth/modules/backups/templates/backups_upload.html
+++ b/plinth/modules/backups/templates/backups_upload.html
@@ -32,7 +32,10 @@
You can choose the apps you wish to import after uploading a backup file.
{% endblocktrans %}
-
+
+ {% trans "Free disk space" %}: {{ free_space }}
+ {% trans "Make sure the uploaded file is smaller than that." %}
+