{% set vars = {'is_first': True} %} {% for item in range(all_stats_dicts["NCBI_FCS_ADAPTOR"]|length) %} {% set
active_text = 'display: block' if vars.is_first else 'display: none' %}
<div
    id="tabcontent_NCBI_FCS_ADAPTOR_{{ all_stats_dicts['NCBI_FCS_ADAPTOR'][item]['hap'] }}"
    class="tabcontent-NCBI_FCS_ADAPTOR"
    style="{{ active_text }}"
>
    <div class="results-section">
        <div class="section-heading-wrapper">
            <div class="section-heading">{{ all_stats_dicts['NCBI_FCS_ADAPTOR'][item]['hap'] }}</div>
        </div>
    </div>
    {%if all_stats_dicts['NCBI_FCS_ADAPTOR'][item]['did_detect_contamination'] %}
    <div class="section-para-wrapper">
        <p class="section-para">Contamination detected. Subsequent pipeline modules are skipped.</p>
    </div>
    <div class="table-outer">
        <div class="table-wrapper">{{ all_stats_dicts['NCBI_FCS_ADAPTOR'][item]['report_table_html'] }}</div>
    </div>
    {% else %}
    <div class="section-para-wrapper"><p class="section-para">No contamination detected.</p></div>
    {% endif %}
</div>
{% if vars.update({'is_first': False}) %} {% endif %} {% endfor %}
