mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
backups: Fix styling for upload size warning
Make it conditional such that when the disk space information is not available due to errors, we don't display the warning. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
ff8d85a88f
commit
6e188524e2
@ -33,12 +33,17 @@
|
||||
backup file.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<div class="alert alert-warning" role="alert">
|
||||
{% blocktrans trimmed %}
|
||||
WARNING: You have {{ max_filesize }} available to restore a backup.<br />
|
||||
Exceeding this limit can leave your {{ box_name }} unusable.
|
||||
{% endblocktrans %}
|
||||
</div>
|
||||
|
||||
{% if max_filesize %}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
|
||||
<span class="sr-only">{% trans "Caution:" %}</span>
|
||||
{% blocktrans trimmed %}
|
||||
You have {{ max_filesize }} available to restore a backup.
|
||||
Exceeding this limit can leave your {{ box_name }} unusable.
|
||||
{% endblocktrans %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<form class="form" enctype="multipart/form-data" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user