{% if imported_count %}
    <div class="alert alert-success mb-2">
        <strong>Import complete.</strong>
        Imported {{ imported_count }} series{% if requested_count %} from {{ requested_count }} requested{% endif %}
        {% if target_case %}
            into case <a href="{% url 'atlas:case_detail' target_case.pk %}">{{ target_case }}</a>
        {% endif %}.
    </div>
    <div class="list-group">
        {% for row in imported_rows %}
            <div class="list-group-item">
                <div class="d-flex flex-wrap align-items-center gap-2 justify-content-between">
                    <div>
                        <strong>{{ row.series.description|default:'Imported series' }}</strong>
                        {% if row.series.series_instance_uid %}
                            <div class="small text-muted">UID: {{ row.series.series_instance_uid }}</div>
                        {% endif %}
                    </div>
                    <div>{{ row.link|safe }}</div>
                </div>
            </div>
        {% endfor %}
    </div>
{% else %}
    <div class="alert alert-warning mb-0">No new series were imported.</div>
{% endif %}
