mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h3>Partition expansion</h3>
|
||||||
{% if expandable_root_size %}
|
{% if expandable_root_size %}
|
||||||
<h3>Expandable Partition</h3>
|
|
||||||
<p>
|
<p>
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
There is {{ expandable_root_size }} of unallocated space
|
There is {{ expandable_root_size }} of unallocated space
|
||||||
@ -88,6 +88,17 @@
|
|||||||
<a class="btn btn-primary btn-md" href="{% url 'disks:expand' %}">
|
<a class="btn btn-primary btn-md" href="{% url 'disks:expand' %}">
|
||||||
{% trans "Expand Root Partition" %}</a>
|
{% trans "Expand Root Partition" %}</a>
|
||||||
</p>
|
</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 %}
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user