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

Closes #2560: Add slug to DeviceType UI view

Jeremy Stretch 7 лет назад
Родитель
Сommit
a43fc0d3d3
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      netbox/templates/dcim/devicetype.html

+ 4 - 1
netbox/templates/dcim/devicetype.html

@@ -55,7 +55,10 @@
                 </tr>
                 </tr>
                 <tr>
                 <tr>
                     <td>Model Name</td>
                     <td>Model Name</td>
-                    <td>{{ devicetype.model }}</td>
+                    <td>
+                        {{ devicetype.model }}<br/>
+                        <small class="text-muted">{{ devicetype.slug }}</small>
+                    </td>
                 </tr>
                 </tr>
                 <tr>
                 <tr>
                     <td>Part Number</td>
                     <td>Part Number</td>