diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-01-19 16:24:04 +0100 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-01-19 17:08:16 +0100 |
commit | 302a776c5fd7be3ecd79b02f642f4e8dbee41a3b (patch) | |
tree | 07475245004c389b6cf6556c6b9516e23dd222cb /ogcp/templates | |
parent | 813b9e28d13e1935f24be0fa0460880be2db9806 (diff) |
Show disk and partition size in mebibytes
This commit converts disk and partition size from kibibytes to mebibytes
to improve usability. Disk and partition size are used in "Client
details" and "Partition & format" forms.
It also returns size to kibibytes when creating /setup API
payload as required by ogServer.
Diffstat (limited to 'ogcp/templates')
-rw-r--r-- | ogcp/templates/actions/client_details.html | 4 | ||||
-rw-r--r-- | ogcp/templates/actions/setup.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ogcp/templates/actions/client_details.html b/ogcp/templates/actions/client_details.html index d4158bf..16160ea 100644 --- a/ogcp/templates/actions/client_details.html +++ b/ogcp/templates/actions/client_details.html @@ -16,7 +16,7 @@ <th>Partition</th> <th>Type</th> <th>Filesytem</th> - <th>Size (KB)</th> + <th>Size (MB)</th> <th>Image</th> <th colspan="2"></th> </tr> @@ -27,7 +27,7 @@ <td>{{ entry.partition }}</td> <td>{{ entry.code }}</td> <td>{{ entry.filesystem }}</td> - <td>{{ entry.size }}</td> + <td>{{ entry.size // 1024}}</td> <td>{{ entry.image }}</td> </tr> {% endfor %} diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html index a2f71f9..8b5b003 100644 --- a/ogcp/templates/actions/setup.html +++ b/ogcp/templates/actions/setup.html @@ -9,7 +9,7 @@ <thead class="text-center"> <tr> <th>Partition Table</th> - <th>Total Disk Size (KB)</th> + <th>Total Disk Size (MB)</th> </tr> </thead> @@ -27,7 +27,7 @@ <th>Partition</th> <th>Type</th> <th>Filesytem</th> - <th>Size (KB)</th> + <th>Size (MB)</th> <th>Format?</th> <th colspan="2"></th> </tr> |