{% set isTeaserGrid = isTeaserGrid is defined ? isTeaserGrid : false %}
{% if demi_hasKnpPaginator(infrastructureList) and infrastructureList.getTotalItemCount() > 0 and not isTeaserGrid %}
{{ include('@ElementsDemiFrontend/Includes/paging.html.twig', demi_getPagesArray(infrastructureList)|merge({
pagingClass: 'demi-infrastructure-paging demi-infrastructure-paging--top',
pageLinkClass: 'js-demi-ajax-form__link'
})) }}
{% elseif not isTeaserGrid %}
<div class="demi-infrastructure-paging demi-infrastructure-paging--top">
<div class="row align-items-center ">
<div class="col has-paging--count">
<div class="row row--gutter-with-10">
<div class="col-md-auto text-nowrap">
{{ infrastructureList.getTotalItemCount() }} {{ infrastructureList.getTotalItemCount()== 1 ? 'demi.infrastructure.paging.result' : 'demi.infrastructure.paging.results' | trans }}
</div>
</div>
</div>
</div>
</div>
{% endif %}
<div class="row row--same-height row--has-demi-infrastructure-teaser demi-infrastructure-overview-teaser-list">
{% if infrastructureList.getTotalItemCount() <= 0 and not editmode %}
<div class="demi-infrastructure-overview-teaser-list__item {{ colClass is defined ? colClass : '' }}">
<div class="alert alert-danger wysiwyg">
{{ demiConfigurationHelper().getInfrastructureNoResultText() | raw }}
</div>
</div>
{% endif %}
{% for key,item in infrastructureList %}
{% set perPage = pimcore_numeric('perPage').number ?: 12 %}
{% if key < perPage %}
{# no more json LD data for additional service teaser overview WF_1468733 #}
{# do jsonLd().add("infrasructure" ~ key, demi_infrastructureGetJsonLdData(item)) #}
{% endif %}
{{ include('@ElementsDemiFrontend/Infrastructure/includes/teaser.html.twig', {
'item' : item,
'teaserColClass' : 'col-6 col-md-3 demi-infrastructure-overview-teaser-list__item',
'open' : demi_infrastructureGetIsOpened(item)
}) }}
{% endfor %}
</div>
{% if demi_hasKnpPaginator(infrastructureList) and infrastructureList.getTotalItemCount() > 0 and not isTeaserGrid %}
{{ include('@ElementsDemiFrontend/Includes/paging.html.twig', demi_getPagesArray(infrastructureList)|merge({
pagingClass: 'demi-infrastructure-paging demi-infrastructure-paging--bottom',
pageLinkClass: 'js-demi-ajax-form__link'
})) }}
{% elseif not isTeaserGrid %}
<div class="demi-infrastructure-paging demi-infrastructure-paging--bottom">
<div class="row align-items-center ">
<div class="col has-paging--count">
<div class="row row--gutter-with-10">
<div class="col-md-auto text-nowrap">
{{ infrastructureList.getTotalItemCount() }} {{ infrastructureList.getTotalItemCount()== 1 ? 'demi.infrastructure.paging.result' : 'demi.infrastructure.paging.results' | trans }}
</div>
</div>
</div>
</div>
</div>
{% endif %}