ソースを参照

speed.html should reference value for port_speed

Jeremy Stretch 1 日 前
コミット
ccff9c4d19

+ 2 - 2
netbox/templates/circuits/circuit_termination/attrs/speed.html

@@ -1,8 +1,8 @@
 {% load helpers i18n %}
 {% load helpers i18n %}
 {% if object.upstream_speed %}
 {% if object.upstream_speed %}
-  <i class="mdi mdi-arrow-down-bold" title="{% trans "Downstream" %}"></i> {{ object.port_speed|humanize_speed }}
+  <i class="mdi mdi-arrow-down-bold" title="{% trans "Downstream" %}"></i> {{ value|humanize_speed }}
   <i class="mdi mdi-slash-forward"></i>
   <i class="mdi mdi-slash-forward"></i>
   <i class="mdi mdi-arrow-up-bold" title="{% trans "Upstream" %}"></i> {{ object.upstream_speed|humanize_speed }}
   <i class="mdi mdi-arrow-up-bold" title="{% trans "Upstream" %}"></i> {{ object.upstream_speed|humanize_speed }}
 {% else %}
 {% else %}
-  {{ object.port_speed|humanize_speed }}
+  {{ value|humanize_speed }}
 {% endif %}
 {% endif %}