{% load horizon %} {% for heading, panels in components.iteritems %} {% with panels|can_haz_list:user as filtered_panels %} {% if filtered_panels %}

{{ heading }}

{% endif %} {% endwith %} {% endfor %}