@switch (effectiveLayout) {
@case ('HERO') {
@if (imageIds.length > 0 || editable) {
@if (heroId) {
![]()
@if (editable) {
}
}
@if (restIds.length > 0 || editable) {
@for (id of restIds; track id) {
![]()
@if (editable) {
}
}
@if (editable) {
}
}
@if (!heroId && editable) {
}
} @else {
{{ 'imageGallery.empty' | translate }}
}
}
@case ('MASONRY') {
@if (imageIds.length > 0 || editable) {
@for (id of imageIds; track id) {
![]()
@if (editable) {
}
}
@if (editable) {
}
} @else {
{{ 'imageGallery.empty' | translate }}
}
}
@case ('CAROUSEL') {
@if (imageIds.length > 0 || editable) {
@if (imageIds.length > 1) {
}
@for (id of imageIds; track id) {
![]()
@if (editable) {
}
}
@if (editable) {
}
@if (imageIds.length > 1) {
}
} @else {
{{ 'imageGallery.empty' | translate }}
}
}
@case ('EDITORIAL') {
@if (imageIds.length > 0 || editable) {
@for (id of imageIds; track id; let i = $index) {
![]()
@if (editable) {
}
}
@if (editable) {
}
} @else {
{{ 'imageGallery.empty' | translate }}
}
}
@case ('MAPS') {
@if (imageIds.length > 0 || editable) {
@for (id of imageIds; track id) {
![]()
@if (editable) {
}
}
@if (editable) {
}
} @else {
{{ 'imageGallery.empty' | translate }}
}
}
@default {
@if (imageIds.length > 0 || editable) {
@for (id of imageIds; track id) {
![]()
@if (editable) {
}
}
@if (editable) {
}
} @else {
{{ 'imageGallery.empty' | translate }}
}
}
}
@if (lightboxId) {