Permit disabling utilization graph warning/danger thresholds

This commit is contained in:
jeremystretch
2021-05-11 14:52:27 -04:00
parent bf56145a09
commit ecf51406c5
4 changed files with 41 additions and 42 deletions
+3 -2
View File
@@ -101,8 +101,9 @@
<tr>
<th scope="row">Utilization</th>
<td>
{% if object.marked_utilized %}
{% utilization_graph 100 %}
{% if object.mark_utilized %}
{% utilization_graph 100 warning_threshold=0 danger_threshold=0 %}
<small>(Marked fully utilized)</small>
{% else %}
{% utilization_graph object.get_utilization %}
{% endif %}