Tweak display of deprecated disk field

This commit is contained in:
Jeremy Stretch 2023-10-27 11:12:08 -04:00
parent 2b0e2fa923
commit 84b4ab1c5e

View File

@ -138,23 +138,23 @@
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
{% if object.disk %}
<tr> <tr>
<th scope="row"><i class="mdi mdi-harddisk"></i> {% trans "Disk Space" %} <i class='text-warning'>{% trans "(deprecated)" %}</i></th> <th scope="row">
<td> <i class="mdi mdi-harddisk"></i> {% trans "Disk Space" %}
{{ object.disk }} {% trans "GB" context "Abbreviation for gigabyte" %} </th>
</td> <td>
</tr> {% if object.disk %}
{% endif %} {{ object.disk }} {% trans "GB" context "Abbreviation for gigabyte" %}
<tr> <span class="text-warning">
<th scope="row"><i class="mdi mdi-harddisk"></i> {% trans "Virtual Disk Space" %}</th> <i class="mdi mdi-alert" title="{% trans "This field has been deprecated and will be removed in a future release." %}"></i>
<td> </span>
{% if object.disk_size %} {% elif object.disk_size %}
{{ object.disk_size }} {% trans "GB" context "Abbreviation for gigabyte" %} {{ object.disk_size }} {% trans "GB" context "Abbreviation for gigabyte" %}
{% else %} ({{ object.virtualdisks.count }} {% trans "disks" %})
{{ ''|placeholder }} {% else %}
{% endif %} {{ ''|placeholder }}
</td> {% endif %}
</td>
</tr> </tr>
</table> </table>
</div> </div>