1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Changes to template, view and CablePath class to

indicate to users whether the cable length is
accurate or not.
This commit is contained in:
Chris Mills
2021-01-22 16:45:08 +00:00
parent 5e962719ca
commit 02e8979178
3 changed files with 12 additions and 4 deletions

View File

@@ -69,7 +69,7 @@
<h5>Total segments: {{ traced_path|length }}</h5>
<h5>Total length:
{% if total_length %}
{{ total_length|floatformat:"-2" }} Meters /
{% if not is_definitive %}&gt;{% endif %}{{ total_length|floatformat:"-2" }} Meters /
{{ total_length|meters_to_feet|floatformat:"-2" }} Feet
{% else %}
<span class="text-muted">N/A</span>