Skip to content

Commit

Permalink
Merge pull request #3158 from tb-killa/3150
Browse files Browse the repository at this point in the history
Fixes: #3150- Formatting of cable length in cable trace
  • Loading branch information
DanSheps authored May 6, 2019
2 parents b973390 + 1b86204 commit dfd4a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/templates/dcim/cable_trace.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h4>
</h4>
<p><span class="label label-{% if cable.status %}success{% else %}info{% endif %}">{{ cable.get_status_display }}</span></p>
<p>{{ cable.get_type_display|default:"" }}</p>
{% if cable.length %}- {{ cable.length }}{{ cable.get_length_unit_display }}{% endif %}
{% if cable.length %}{{ cable.length }} {{ cable.get_length_unit_display }}{% endif %}
<span class="label color-block center-block" style="background-color: #{{ cable.color }}">&nbsp;</span>
{% else %}
<h4 class="text-muted">No Cable</h4>
Expand Down

0 comments on commit dfd4a71

Please sign in to comment.