Skip to content

Commit 1055faf

Browse files
Merge pull request #3920 from hSaria/3919-utilization-bar-width
Fixes #3919: Utilization graph bar bounds
2 parents e5ebe6c + 351a6e0 commit 1055faf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/release-notes/version-2.6.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
* [#3900](https://github.com/netbox-community/netbox/issues/3900) - Fix exception when deleting device types
1010
* [#3914](https://github.com/netbox-community/netbox/issues/3914) - Fix interface filter field when unauthenticated
11+
* [#3919](https://github.com/netbox-community/netbox/issues/3919) - Fix utilization graph extending out of bounds when utilization > 100%
1112
* [#3927](https://github.com/netbox-community/netbox/issues/3927) - Fix exception when deleting devices with secrets assigned
1213

1314
---
@@ -44,7 +45,7 @@
4445
* [#3872](https://github.com/netbox-community/netbox/issues/3872) - Paginate related IPs on the IP address view
4546
* [#3876](https://github.com/netbox-community/netbox/issues/3876) - Fix minimum/maximum value rendering for site ASN field
4647
* [#3882](https://github.com/netbox-community/netbox/issues/3882) - Fix filtering of devices by rack group
47-
* [#3898](https://github.com/netbox-community/netbox/issues/3898) - Fix references to deleted cables without a label
48+
* [#3898](https://github.com/netbox-community/netbox/issues/3898) - Fix references to deleted cables without a label
4849
* [#3905](https://github.com/netbox-community/netbox/issues/3905) - Fix divide-by-zero on power feeds with low power values
4950

5051
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="progress text-center">
22
{% if utilization < 30 %}<span style="font-size: 12px;">{{ utilization }}%</span>{% endif %}
33
<div class="progress-bar progress-bar-{% if utilization >= danger_threshold %}danger{% elif utilization >= warning_threshold %}warning{% else %}success{% endif %}"
4-
role="progressbar" aria-valuenow="{{ utilization }}" aria-valuemin="0" aria-valuemax="100" style="width: {{ utilization }}%">
4+
role="progressbar" aria-valuenow="{{ utilization }}" aria-valuemin="0" aria-valuemax="100" style="width: {% if utilization > 100 %}100{% else %}{{ utilization }}{% endif %}%">
55
{% if utilization >= 30 %}{{ utilization }}%{% endif %}
66
</div>
77
</div>

0 commit comments

Comments
 (0)