{% extends "html/body_base.jinja" %}

{% block report %}
    <div class="pure-g">
        <div class="pure-u-1 pure-u-md-2-3">
            {% if not has_plotting_engine %}

                {% include "html/partials/missing_plotting_engine.jinja" %}

            {% elif content %}
                <div class="image">
                    <img class="pure-img"
                         width="100%"
                         src="data:image/svg+xml;base64,{{ content }}"
                         alt="image" />
                </div>
            {% endif %}
        </div>
        <div class="pure-u-1 pure-u-md-1-3">
            <p>{{ description }}</p>
            {% if number_of_regions %}
                <p>
                    The masker has <b>{{ number_of_regions }}</b> different non-overlapping regions.
                </p>
            {% endif %}
        </div>
    </div>
    <div class="pure-g">
        <div class="pure-u-1 pure-u-md-3-3">
            <div class="d-flex flex-column">
                {% if summary_html %}
                    <details>
                        <summary class="pure-button">Regions summary</summary>
                        <div class="table-container">{{ summary_html|safe }}</div>
                    </details>
                {% endif %}
            </div>
        </div>
    </div>

    {% include "html/maskers/partials/parameters.jinja" %}
    {% include "html/maskers/partials/info_transfom.jinja" %}

{% endblock report %}
