Explorar o código

Fixed #7783 - Site location visual changes

Updating site location list to visually match the /dcim/locations list where child locations are "indtended" with mdi-circle-small.

Also removes the padding-left attribute on each row as it is no longer functional.
Jason Yates %!s(int64=4) %!d(string=hai) anos
pai
achega
3f72492a59
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      netbox/templates/dcim/site.html

+ 2 - 2
netbox/templates/dcim/site.html

@@ -219,8 +219,8 @@
                     </tr>
                     {% for location in locations %}
                         <tr>
-                            <td style="padding-left: {{ location.level }}8px">
-                                <i class="mdi mdi-folder-open"></i>
+                            <td>
+                                {% for i in location.level|as_range %}<i class="mdi mdi-circle-small"></i>{% endfor %}
                                 <a href="{{ location.get_absolute_url }}">{{ location }}</a>
                             </td>
                             <td>