Просмотр исходного кода

Highlight the current termination

Jeremy Stretch 5 лет назад
Родитель
Сommit
83daadd575

+ 3 - 0
netbox/project-static/css/base.css

@@ -248,6 +248,9 @@ table.report th a {
     width: 60%;
     z-index: 2;
 }
+.cable-trace .active {
+    border: 3px solid #30C030;
+}
 .cable-trace .cable {
     border-left-style: solid;
     border-left-width: 4px;

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

@@ -1,5 +1,5 @@
 {% load helpers %}
-<div class="termination">
+<div class="termination{% if obj == termination %} active{% endif %}">
     <strong><a href="{{ termination.get_absolute_url }}">{{ termination }}</a></strong><br />
     {{ termination|meta:"verbose_name"|bettertitle }}
     {% if termination.type %}