disks: Show disabled partition resize option

If no space is available. Closes #785.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Johannes Keyser 2017-04-09 15:41:35 +02:00 committed by Sunil Mohan Adapa
parent 1762c84852
commit 790db846a9
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -74,8 +74,8 @@
</div>
</div>
<h3>Partition expansion</h3>
{% if expandable_root_size %}
<h3>Expandable Partition</h3>
<p>
{% blocktrans trimmed %}
There is {{ expandable_root_size }} of unallocated space
@ -88,6 +88,17 @@
<a class="btn btn-primary btn-md" href="{% url 'disks:expand' %}">
{% trans "Expand Root Partition" %}</a>
</p>
{% else %}
<p>
{% blocktrans trimmed %}
There is no unallocated space after your root partition.
There is no need to expand it.
{% endblocktrans %}
</p>
<p>
<a class="btn btn-primary btn-md disabled" href="{% url 'disks:expand' %}">
{% trans "Expand Root Partition" %}</a>
</p>
{% endif %}
{% endblock %}