@if (page) {

{{ page.title }}

{{ template?.name || ('pageView.pageFallback' | translate) }}

@if (template?.fields?.length) {
@for (field of orderedFields; track field) { @if (field.type === 'TEXT') {

{{ field.name }}

@if (valueOf(field)) {

{{ valueOf(field) }}

} @else {

{{ 'pageView.notFilled' | translate }}

}
} @if (field.type === 'IMAGE') {

{{ field.name }}

} @if (field.type === 'KEY_VALUE_LIST') {

{{ field.name }}

@if (kvHasContent(field)) {
@for (lbl of field.labels ?? []; track $index) {
{{ lbl }} {{ kvValueOf(field, lbl) || '—' }}
}
} @else {

{{ 'pageView.notFilled' | translate }}

}
} @if (field.type === 'TABLE') {

{{ field.name }}

@if (tableRowsOf(field).length) { @for (col of field.labels ?? []; track $index) { } @for (row of tableRowsOf(field); track $index) { @for (col of field.labels ?? []; track $index) { } }
{{ col }}
{{ row[col] || '—' }}
} @else {

{{ 'pageView.notFilled' | translate }}

}
} }
} @if ((page.tags?.length ?? 0) > 0) {

{{ 'pageView.tags' | translate }}

@for (tag of page.tags; track tag) { {{ tag }} }
} @if ((page.relatedPageIds?.length ?? 0) > 0) {

{{ 'pageView.relatedPages' | translate }}

@for (relId of page.relatedPageIds; track relId) { {{ titleOfRelated(relId) }} }
} @if (page.notes?.trim()) {

🔒 {{ 'pageView.privateNotes' | translate }}

{{ page.notes }}

}
}