{% load rack %}
{% for device in reorder_devices %} {% if device.face == face or device.full_depth %}
{% if device.face == face %}
{% if images and device.front_image %}{% if labels %}{{ device.label }}{% endif %}{% else %}{{ device.label }}{% endif %}
{% else %}
{% if images and device.rear_image %}{% if labels %}{{ device.label }}{% endif %}{% else %}{{ device.label }}{% endif %}
{% endif %}
{% endif %} {% endfor %}