{% extends 'generic/object.html' %} {% load buttons %} {% load static %} {% load helpers %} {% load plugins %} {% block breadcrumbs %} {% if object.parent_bay %} {% endif %} {% endblock %} {% block extra_controls %} {% if perms.dcim.change_device %} {% endif %} {% endblock %} {% block tab_items %} {% with interface_count=object.interfaces_count %} {% if interface_count %} {% endif %} {% endwith %} {% with frontport_count=object.frontports.count %} {% if frontport_count %} {% endif %} {% endwith %} {% with rearport_count=object.rearports.count %} {% if rearport_count %} {% endif %} {% endwith %} {% with consoleport_count=object.consoleports.count %} {% if consoleport_count %} {% endif %} {% endwith %} {% with consoleserverport_count=object.consoleserverports.count %} {% if consoleserverport_count %} {% endif %} {% endwith %} {% with powerport_count=object.powerports.count %} {% if powerport_count %} {% endif %} {% endwith %} {% with poweroutlet_count=object.poweroutlets.count %} {% if poweroutlet_count %} {% endif %} {% endwith %} {% with devicebay_count=object.devicebays.count %} {% if devicebay_count %} {% endif %} {% endwith %} {% with inventoryitem_count=object.inventoryitems.count %} {% if inventoryitem_count %} {% endif %} {% endwith %} {% if perms.dcim.napalm_read_device and object.status == 'active' and object.primary_ip and object.platform.napalm_driver %} {# NAPALM-enabled tabs #} {% endif %} {% if perms.extras.view_configcontext %} {% endif %} {% endblock %}