mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
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:
parent
1762c84852
commit
790db846a9
@ -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 %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user