}
@if (loaded) {
@if (((questionsAnswers | async) || []).length > 0) {
}
@if (selectedTab === 'content') {
@let extractId = extractConfigId | async;
@let extractName = (extractConfig | async)?.name;
@let splitId = splitConfigId | async;
@let splitName = (splitConfig | async)?.name;
@if (extractId || splitId) {
}
@for (paragraph of filteredParagraphs | async; track paragraph.paragraphId + paragraph.key) {
@if (paragraph.url) {
} @else if (paragraph.kind === 'TEXT') {
@if (((attachments | async) || {})[paragraph.key || '']; as attachments) {
{{ paragraph.text }}
{{ 'resource.attachments' | translate }}
@for (attachment of attachments; track attachment) {
{{ 'resource.field-' + attachment.field_type | translate }}
}
} @else {
{{ paragraph.text }}
}
} @else {
@if (paragraph.kind === 'TABLE') {
} @else {
{{ paragraph.text }}
}
{{ paragraph.kind }}
}
@if (paragraph.activeClassifications.length > 0) {
{{ 'resource.preview.labels' | translate }}
@for (label of paragraph.activeClassifications; track label.labelset + label.label) {
{{ label.label }}
}
}
}
@if ((paragraphs | async)?.length === 0 && !(jsonTextField | async)) {
}
} @else {
@if (questionsAnswers | async; as questionsAnswers) {
@for (item of questionsAnswers; track item.question.text) {
}
}
}
} @else {
@if (resource | async; as resource) {
@if (resource.hidden) {
{{ 'resource.preview.hide-warning' | translate }}
}
{{ 'resource.preview.general' | translate }}
{{ 'generic.uid' | translate }}
{{ resource.uuid }}
{{ 'generic.slug' | translate }}
{{ resource.slug }}
{{ 'resource.title' | translate }}
{{ resource.title }}
{{ 'resource.summary' | translate }}
{{ 'resource.thumbnail.label' | translate }}
@for (thumb of thumbnails | async; track thumb.uri) {
}
@if (!(hasThumbnail | async)) {
–
}
@if (resource.origin; as origin) {
{{ 'resource.preview.origin' | translate }}
{{ 'resource.origin.collaborators' | translate }}
{{ origin.collaborators?.join(', ') || '–' }}
{{ 'resource.origin.created' | translate }}
{{ origin.created || '–' }}
{{ 'resource.origin.modified' | translate }}
{{ origin.modified || '–' }}
{{ 'resource.origin.filename' | translate }}
{{ origin.filename || '–' }}
{{ 'resource.origin.url' | translate }}
{{ origin.url || '–' }}
{{ 'resource.origin.tags' | translate }}
{{ origin.tags?.join(', ') || '–' }}
{{ 'resource.origin.related' | translate }}
{{ origin.related?.join(', ') || '–' }}
{{ 'resource.origin.path' | translate }}
{{ origin.path || '–' }}
{{ 'resource.origin.metadata.title' | translate }}
@if (origin.metadata; as originMetadata) {
@for (item of originMetadata | keyvalue; track item.key) {
{{ item.key }}
{{ item.value }}
}
} @else {
–
}
}
@if (extraMetadata | async; as extraMetadata) {
}
@if (resource.security) {
{{ 'resource.security.label' | translate }}
{{ 'resource.security.access-groups.label' | translate }}
') || '–'">
}