@if (popup) { {{i18n.texts.pages.photos_popup.title}} }
@if (loaded) { @if (tabs.length > 1) { @for (tab of tabs; track $index) {
{{tab}}
}
} @if (photos.length === 0) {
{{i18n.texts.pages.trail.no_photo_message}}
} @else { @if (canEdit) {
{{nbSelected}} / {{photos.length}} {{nbSelected > 1 ? i18n.texts.pages.photos_popup.selected_plural : i18n.texts.pages.photos_popup.selected_single}}
@if (nbSelected > 0) {
:
{{i18n.texts.buttons.delete}} }
}
@for (photoWithInfo of photos; track photoWithInfo.photo.uuid + photoWithInfo.photo.owner) {
@if (canEdit) {
@if ($index > 0) { } @if ($index < photos.length - 1) { }
}
@if (photoWithInfo.editing === null) {
@if (photoWithInfo.photo.description.trim().length === 0) { {{i18n.texts.pages.trail.photo_no_description}} } @else { {{photoWithInfo.photo.description}} }
} @else { }
}
} }
@if (canAdd) { {{i18n.texts.pages.photos_popup.add_photos_buttons}} @if (canTakePhoto) { {{i18n.texts.pages.trail.take_photo}} } } @if (popup) { {{i18n.texts.buttons.close}} }