{% set vars = {'is_first': True} %} {% for item in range(all_stats_dicts["ASSEMBLATHON_STATS"]|length) %} {% set
active_text = 'display: block' if vars.is_first else 'display: none' %}
<div
    id="tabcontent_ASSEMBLATHON_STATS_{{ all_stats_dicts['ASSEMBLATHON_STATS'][item]['hap'] }}"
    class="tabcontent-ASSEMBLATHON_STATS"
    style="{{ active_text }}"
>
    <div class="results-section">
        <div class="section-heading-wrapper">
            <div class="section-heading">{{ all_stats_dicts['ASSEMBLATHON_STATS'][item]['hap'] }}</div>
        </div>
    </div>
    <div class="table-outer">
        <div class="table-wrapper">{{ all_stats_dicts['ASSEMBLATHON_STATS'][item]['report_table_html'] }}</div>
    </div>
</div>
{% if vars.update({'is_first': False}) %} {% endif %} {% endfor %}
