{% for tab in tabs %} {% if not tab.read_only or tab.visual_only %} {% include "ochre/template_pack/tab_content.html" with index=forloop.counter content=tab uid=uid %} {% endif %} {% endfor %}