Procházet zdrojové kódy

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 před 4 roky
rodič
revize
3f72492a59
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      netbox/templates/dcim/site.html

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

@@ -219,8 +219,8 @@
                     </tr>
                     </tr>
                     {% for location in locations %}
                     {% for location in locations %}
                         <tr>
                         <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>
                                 <a href="{{ location.get_absolute_url }}">{{ location }}</a>
                             </td>
                             </td>
                             <td>
                             <td>