{% for tab in tabs -%}
{%- if loop.index == 1 %}
{%- else %}
{%- endif %}
{%- for output in outputs %}
{%- if output['tab'] == tab %}
{%- if output['output_type'] != "d3" %}
{%- endif %}
{%- if output['output_type'] == "d3" %}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- endfor %}
{% else -%}
{%- for output in outputs %}
{% if output['output_type'] != "d3" -%}