Browse Source

Added instance count to DeviceType view

Jeremy Stretch 8 years ago
parent
commit
4d40c015e4
1 changed files with 4 additions and 0 deletions
  1. 4 0
      netbox/templates/dcim/devicetype.html

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

@@ -72,6 +72,10 @@
                         {% endif %}
                         {% endif %}
                     </td>
                     </td>
                 </tr>
                 </tr>
+                <tr>
+                    <td>Instances</td>
+                    <td><a href="{% url 'dcim:device_list' %}?device_type_id={{ devicetype.pk }}">{{ devicetype.instances.count }}</a></td>
+                </tr>
             </table>
             </table>
         </div>
         </div>
         <div class="panel panel-default">
         <div class="panel panel-default">