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

Merge pull request #9564 from huntabyte/feature-9517

Closes #9517: Linkify Power Port on Power Outlet Object View
Jeremy Stretch 3 лет назад
Родитель
Сommit
25128bd06f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/templates/dcim/poweroutlet.html

+ 1 - 1
netbox/templates/dcim/poweroutlet.html

@@ -44,7 +44,7 @@
                         </tr>
                         </tr>
                         <tr>
                         <tr>
                             <th scope="row">Power Port</th>
                             <th scope="row">Power Port</th>
-                            <td>{{ object.power_port }}</td>
+                            <td>{{ object.power_port|linkify|placeholder }}</td>
                         </tr>
                         </tr>
                         <tr>
                         <tr>
                             <th scope="row">Feed Leg</th>
                             <th scope="row">Feed Leg</th>