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

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 4 лет назад
Родитель
Сommit
3f72492a59
1 измененных файлов с 2 добавлено и 2 удалено
  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>