netbox/netbox/templates/virtualization
Julio Oliveira at Encora 7e1b3d0b54
15873 - Make Cluster resource counters more readable (#15900)
* Created "convert_byte_size" method to convert the memory and disk size according to unit informed.
Changed "get_extra_context" method from "ClusterView" to use the method above and convert all the disks and memories from VMs to normalize the units.

* Changed decimal size for memory_sum and disk_sum

* Added test for convert_byte_size.

* Fixed

* Addressed PR comments.
Changed humanize_megabytes in helpers.py

* Addressed PR comments.
Changed humanize_megabytes in helpers.py

* Linter issues for helpers.py

* Changed humanize_megabytes

* Changed humanize_megabytes

* Changed humanize_megabytes

* Added the title to display the value in MB when mouseover.

* Addressed PR comment.

* Addressed PR comment.

* Rewrite sizing logic

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-06-06 09:37:29 -04:00
..
cluster Closes #14736: Enable HTMX navigation globally (#15158) 2024-03-28 11:51:38 -04:00
virtualmachine Closes #14736: Enable HTMX navigation globally (#15158) 2024-03-28 11:51:38 -04:00
cluster_add_devices.html Closes #12128: Refresh the web UI to employ the Tabler CSS framework (#14833) 2024-01-17 16:25:42 -05:00
cluster.html 15873 - Make Cluster resource counters more readable (#15900) 2024-06-06 09:37:29 -04:00
clustergroup.html Closes #12128: Refresh the web UI to employ the Tabler CSS framework (#14833) 2024-01-17 16:25:42 -05:00
clustertype.html Closes #12128: Refresh the web UI to employ the Tabler CSS framework (#14833) 2024-01-17 16:25:42 -05:00
virtualdisk.html Closes #12128: Refresh the web UI to employ the Tabler CSS framework (#14833) 2024-01-17 16:25:42 -05:00
virtualmachine_list.html Closes #14736: Enable HTMX navigation globally (#15158) 2024-03-28 11:51:38 -04:00
virtualmachine.html 15873 - Make Cluster resource counters more readable (#15900) 2024-06-06 09:37:29 -04:00
vminterface.html Relocate "add" buttons for embedded object tables 2024-01-31 17:59:14 -05:00