Selaa lähdekoodia

Add racks count to location view

jeremystretch 5 vuotta sitten
vanhempi
commit
54d9ca8ed8
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  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>