{% set vars = {'is_first': True} %} {% for item in range(all_stats_dicts["HIC"]|length) %} {% set active_text =
'display: block' if vars.is_first else 'display: none' %}
<div id="tabcontent_HIC_{{ all_stats_dicts['HIC'][item]['hap'] }}" class="tabcontent-HIC" style="{{ active_text }}">
    <div class="results-section">
        <div class="section-heading-wrapper">
            <div class="section-heading">{{ all_stats_dicts['HIC'][item]['hap'] }}</div>
        </div>
        <div class="iframe-wrapper">
            <iframe
                src="./hic/{{ all_stats_dicts['HIC'][item]['hic_html_file_name'] }}"
                width="100%"
                height="100%"
            ></iframe>
        </div>
    </div>
</div>
{% if vars.update({'is_first': False}) %} {% endif %} {% endfor %}
