{% comment %} "Coverage Gaps" home dashboard panel — Devices with no active contract coverage (direct or via Tenant / Location). Helps procurement and ops teams catch the "we forgot to add the new datacenter to support" failure mode before something breaks at 2am. Context variables (from homepage.py): - uncovered_devices: list of Device objects, soonest-listed first, capped at 10. {% endcomment %} {% if uncovered_devices and perms.dcim.view_device %} {% for device in uncovered_devices %}
{{ device.name|default:"(unnamed device)" }} {% if device.location %}{{ device.location.name }}{% else %}—{% endif %}
{% if device.device_type %}{{ device.device_type.model }}{% endif %} {% if device.tenant %} · {{ device.tenant.name }}{% endif %}
{% if forloop.last %}
View all devices
{% endif %} {% endfor %} {% elif perms.dcim.view_device %}
All devices have active coverage.
{% else %}
No permission
{% endif %}