<h3>
    {% if cluster[0].experimental %}
    <div style='color:#88c'>EXPERIMENTAL CHECK - {{cluster[0].experimental}}</div>
    {% endif %}
    {{cluster[0].description}}
</h3>
<div class='check__idlabel'>Check ID: {{ cluster[0].key[1] }}</div>

{% if cluster[0].rationale and not succinct %}
    {{ cluster[0].rationale | unwrap | markdown }}
{% endif %}
{% if cluster[0].proposal and not succinct %}
    <ul>
    {% for proposal in cluster[0].proposal %}
        {% if loop.index == 1 %}
            <li>Original proposal: <a href="{{proposal}}">{{proposal}}</a></li>
        {% else %}
            <li>See also: <a href="{{proposal}}">{{proposal}}</a></li>
        {% endif %}
    {% endfor %}
    </ul>
{% endif %}
<div style="background-color:#ee8">
{% for check in cluster %}
    {% if check['result'] == "FATAL" %}
        {{ check['result'] | emoticon }}
        {% if "filename" is in(check) %}{{ check.filename | basename }}
        {% else %}
        Family Check
        {% endif %}
        <ul>
        {% for log in check.logs|sort(attribute="status.weight", reverse=true)%}
            <li class='details_item'>
                <span class='details_indicator'>
                {{log["status"] | emoticon}} {{log["status"]}}
                </span>

                <span class='details_text'>
                {{log["message"]["message"] | markdown}}
                {% if log["message"]["code"] %}
                {{" [code: " ~ log["message"]["code"] ~ "]"}}
                {% endif %}
                </span>
            </li>
        {% endfor %}
        </ul>
    {% endif %}
{% endfor %}
</div>

{% for check in cluster %}
    {% if check['result'] != "FATAL" and not check is omitted %}
        <details>
            <summary>
                {{ check['result'] | emoticon }}
                {% if "filename" is in(check) %}{{ check.filename | basename }}
                {% else %}
                Family Check
                {% endif %}
            </summary>
            <div>
                <ul>
                {% for log in check.logs|sort(attribute="status.weight", reverse=true)%}
                        <li class='details_item'>
                            <span class='details_indicator'>
                            {{log["status"] | emoticon}} {{log["status"]}}
                            </span>

                            <span class='details_text'>
                            {{log["message"]["message"] | markdown}}
                            {% if log["message"]["code"] %}
                            {{" [code: " ~ log["message"]["code"] ~ "]"}}
                            {% endif %}
                            </span>
                        </li>
                {% endfor %}
                </ul>
            </div>
        </details>
    {% endif %}
{% endfor %}
