mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #9871: Fix utilization graph value alignments
This commit is contained in:
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#9871](https://github.com/netbox-community/netbox/issues/9871) - Fix utilization graph value alignments
|
||||||
* [#9884](https://github.com/netbox-community/netbox/issues/9884) - Prevent querying assigned VRF on prefix object init
|
* [#9884](https://github.com/netbox-community/netbox/issues/9884) - Prevent querying assigned VRF on prefix object init
|
||||||
* [#9885](https://github.com/netbox-community/netbox/issues/9885) - Fix child prefix counts when editing/deleting aggregates in bulk
|
* [#9885](https://github.com/netbox-community/netbox/issues/9885) - Fix child prefix counts when editing/deleting aggregates in bulk
|
||||||
* [#9891](https://github.com/netbox-community/netbox/issues/9891) - Ensure consistent ordering for tags during object serialization
|
* [#9891](https://github.com/netbox-community/netbox/issues/9891) - Ensure consistent ordering for tags during object serialization
|
||||||
|
@ -1,21 +1,15 @@
|
|||||||
{% if utilization == 0 %}
|
<div class="progress">
|
||||||
<div class="progress align-items-center justify-content-center">
|
<div
|
||||||
<span class="w-100 text-center">{{ utilization }}%</span>
|
role="progressbar"
|
||||||
|
aria-valuemin="0"
|
||||||
|
aria-valuemax="100"
|
||||||
|
aria-valuenow="{{ utilization }}"
|
||||||
|
class="progress-bar {{ bar_class }}"
|
||||||
|
style="width: {{ utilization }}%;"
|
||||||
|
>
|
||||||
|
{% if utilization >= 25 %}{{ utilization|floatformat:1 }}%{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% if utilization < 25 %}
|
||||||
<div class="progress">
|
<span class="ps-1">{{ utilization|floatformat:1 }}%</span>
|
||||||
<div
|
{% endif %}
|
||||||
role="progressbar"
|
</div>
|
||||||
aria-valuemin="0"
|
|
||||||
aria-valuemax="100"
|
|
||||||
aria-valuenow="{{ utilization }}"
|
|
||||||
class="progress-bar {{ bar_class }}"
|
|
||||||
style="width: {{ utilization }}%;"
|
|
||||||
>
|
|
||||||
{% if utilization >= 25 %}{{ utilization|floatformat }}%{% endif %}
|
|
||||||
</div>
|
|
||||||
{% if utilization < 25 %}
|
|
||||||
<span class="ps-1">{{ utilization|floatformat }}%</span>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
Reference in New Issue
Block a user