netbox/netbox/templates
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
..
account Flag HTMX navigation as an experimental feature 2024-04-23 10:38:49 -04:00
base Fixes #16003: Enable cache busting on upgrade for setmode.js 2024-05-07 11:10:19 -04:00
circuits 15496 Add circuit termination to menu and associated forms (#15980) 2024-05-17 15:30:10 -04:00
core Fix styling of object jobs table 2024-06-05 09:02:05 -04:00
dcim 16202 fix mapit button for internationalized decimal seperator (#16270) 2024-05-29 10:22:59 -04:00
django/forms/widgets Closes #14917: Replace slim-select with tom-select (#15080) 2024-02-08 15:07:04 -05:00
exceptions Clean up blocktrans template tags (i18n) 2023-09-11 16:17:02 -04:00
extras 16050 Show script python_class name and description (#16185) 2024-06-06 09:05:59 -04:00
generic Closes #15932: Update embedded documentation for generic templates 2024-05-03 10:57:05 -04:00
htmx Fixes #16101: Fix initial loading of pagination widget for dynamic object tables 2024-05-13 18:55:13 -04:00
inc Fixes #16101: Fix initial loading of pagination widget for dynamic object tables 2024-05-13 18:55:13 -04:00
ipam Fixes #15982: Restore the "assign IP" tab 2024-05-07 10:43:49 -04:00
rest_framework Closes #13102: Establish initial translation support in templates 2023-07-28 16:30:25 -04:00
tenancy Introduce ObjectAttribute for displaying read-only instance attributes on forms 2024-03-19 13:34:13 -04:00
users Dissuade non-superusers from creating API tokens via the admin view 2024-04-19 14:34:25 -04:00
virtualization 15873 - Make Cluster resource counters more readable (#15900) 2024-06-06 09:37:29 -04:00
vpn Replace custom form templates with TabbedFieldGroups 2024-03-19 13:34:13 -04:00
wireless Relocate "add" buttons for embedded object tables 2024-01-31 17:59:14 -05:00
403.html Closes #13102: Establish initial translation support in templates 2023-07-28 16:30:25 -04:00
404.html Closes #13102: Establish initial translation support in templates 2023-07-28 16:30:25 -04:00
500.html Merge branch 'develop' into feature 2023-08-09 15:31:21 -04:00
graphiql.html 9856 Replace graphene with Strawberry (#15141) 2024-03-22 12:56:30 -04:00
home.html Closes #12128: Refresh the web UI to employ the Tabler CSS framework (#14833) 2024-01-17 16:25:42 -05:00
login.html #15999: Additional cleanup 2024-05-08 14:06:48 -04:00
media_failure.html Clean up blocktrans template tags (i18n) 2023-09-11 16:17:02 -04:00
search.html Clean up layout of global search results 2024-04-19 15:27:25 -04:00