{% extends 'generic/object.html' %} {% load static %} {% load lens %} {% load helpers %} {% block head %} {{ block.super }} {% include 'netbox_spatial_lens/inc/palette.html' %} {% endblock %} {% block content %} {% comment %} The rooms in a site, as plans rather than as a list of names. This is the contents page of the site: which rooms it has, how full each one is, and a way into each. A site with one room is a page with one plan on it, which is the cost of never telling a site with four rooms that it has one. {% endcomment %}
{% include 'netbox_spatial_lens/inc/levels.html' with site=object %}
{% for o in overlays %} {{ o.label }} {% endfor %}
{% if rooms %}
{% for room in rooms %}
{{ room.floor.name }} {% if room.floor.location %} {{ room.floor.location }} {% endif %} {% include 'netbox_spatial_lens/inc/stats.html' with stats=room.stats %} {% if room.placed %} {% comment %} The same plan the floor page draws, at thumbnail size and without the cable runs or the hover cards. Small enough to compare four rooms at a glance, and it is the real layout rather than an icon, so a half-empty hall looks half empty here too. {% endcomment %} {% include 'netbox_spatial_lens/inc/floor_svg.html' with floor=room.floor view=room.view x_ticks=room.x_ticks y_ticks=room.y_ticks placed_racks=room.placed linkify=False %} {% else %}

No rack has been placed in this room yet.

{% endif %}
{% endfor %}
{% else %}

No room has been drawn for this site. {% if perms.netbox_spatial_lens.add_floor %} Add a floor to start one. {% endif %}

{% endif %} {% if unplaced %} {% comment %} The honesty rule at this level: a rack in the site that stands on no floor is named here rather than being absent from every plan and therefore from every tally. {% endcomment %}

Not on any floor {{ unplaced|length }}

{% endif %}
{% endblock %}