mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-26 18:38:38 -06:00
Updates name present & corresponding variable name
This commit is contained in:
parent
a30df92e98
commit
d106a2e711
@ -1,4 +1,4 @@
|
|||||||
<div {% if utilization_count and num_available %}title="Used: {{ utilization_count }}
Available: {{ num_available }}"
|
<div {% if utilization_count and total_count %}title="Used: {{ utilization_count }}
Total Count: {{ total_count }}"
|
||||||
{% endif %}class="progress text-center">
|
{% endif %}class="progress text-center">
|
||||||
{% if utilization < 30 %}<span style="font-size: 12px;">{{ utilization }}%</span>{% endif %}
|
{% if utilization < 30 %}<span style="font-size: 12px;">{{ utilization }}%</span>{% endif %}
|
||||||
<div class="progress-bar progress-bar-{% if utilization >= danger_threshold %}danger{% elif utilization >= warning_threshold %}warning{% else %}success{% endif %}"
|
<div class="progress-bar progress-bar-{% if utilization >= danger_threshold %}danger{% elif utilization >= warning_threshold %}warning{% else %}success{% endif %}"
|
||||||
|
@ -245,7 +245,7 @@ def utilization_graph(data_input, warning_threshold=75, danger_threshold=90):
|
|||||||
'warning_threshold': warning_threshold,
|
'warning_threshold': warning_threshold,
|
||||||
'danger_threshold': danger_threshold,
|
'danger_threshold': danger_threshold,
|
||||||
'utilization_count': data_input[0],
|
'utilization_count': data_input[0],
|
||||||
'num_available': data_input[1],
|
'total_count': data_input[1],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user