Explorar el Código

Add racks count to location view

jeremystretch hace 4 años
padre
commit
54d9ca8ed8
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      netbox/templates/dcim/location.html

+ 6 - 0
netbox/templates/dcim/location.html

@@ -40,6 +40,12 @@
             {% endif %}
             {% endif %}
           </td>
           </td>
         </tr>
         </tr>
+        <tr>
+          <td>Racks</td>
+          <td>
+            <a href="{% url 'dcim:rack_list' %}?location_id={{ object.pk }}">{{ object.racks.count }}</a>
+          </td>
+        </tr>
         <tr>
         <tr>
           <td>Devices</td>
           <td>Devices</td>
           <td>
           <td>