Przeglądaj źródła

Merge pull request #5662 from cpmills1975/5603-white-cable-fix

Fix white cables
Jeremy Stretch 5 lat temu
rodzic
commit
5c40081d84
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      netbox/templates/dcim/trace/cable.html

+ 1 - 1
netbox/templates/dcim/trace/cable.html

@@ -1,6 +1,6 @@
 {% load helpers %}
 {% load helpers %}
 
 
-<div class="cable" style="border-left-color: #{{ cable.color|default:'606060' }}; {% if cable.status != 'connected' %} border-left-style: dashed{% endif %}">
+<div class="cable" style="border-left-color: #{% if cable.color == 'ffffff' %}909090; border-left-style: double; border-left-width: 6px;{% else %}{{ cable.color|default:'606060' }};{% endif %} {% if cable.status != 'connected' %} border-left-style: dashed{% endif %}">
     <strong>
     <strong>
         <a href="{% url 'dcim:cable' pk=cable.pk %}">
         <a href="{% url 'dcim:cable' pk=cable.pk %}">
             {% if cable.label %}<code>{{ cable.label }}</code>{% else %}Cable #{{ cable.pk }}{% endif %}
             {% if cable.label %}<code>{{ cable.label }}</code>{% else %}Cable #{{ cable.pk }}{% endif %}