From 790db846a98b6f84fc51d42f3587487beda95c24 Mon Sep 17 00:00:00 2001 From: Johannes Keyser Date: Sun, 9 Apr 2017 15:41:35 +0200 Subject: [PATCH] disks: Show disabled partition resize option If no space is available. Closes #785. Signed-off-by: Sunil Mohan Adapa --- plinth/modules/disks/templates/disks.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plinth/modules/disks/templates/disks.html b/plinth/modules/disks/templates/disks.html index 8adca70c6..9f256e511 100644 --- a/plinth/modules/disks/templates/disks.html +++ b/plinth/modules/disks/templates/disks.html @@ -74,8 +74,8 @@ +

Partition expansion

{% if expandable_root_size %} -

Expandable Partition

{% blocktrans trimmed %} There is {{ expandable_root_size }} of unallocated space @@ -88,6 +88,17 @@ {% trans "Expand Root Partition" %}

+ {% else %} +

+ {% blocktrans trimmed %} + There is no unallocated space after your root partition. + There is no need to expand it. + {% endblocktrans %} +

+

+ + {% trans "Expand Root Partition" %} +

{% endif %} {% endblock %}