@if (tracks$ | async; as tracks) { @if (!isSmall || tab === 'details') {
@if (trail1) { @if (!trail2 || trail1.fromModeration) { } @if (trail2) { } @if (comparison !== undefined) { } @if (trail1.fromModeration) {
@if (trail1.publicationMessageFromModerator) {

{{ i18n.texts.publications.moderation.previous_moderator_message }}

{{ trail1.publicationMessageFromModerator }}
} @if (trail1.publicationMessageFromAuthor) {

{{ i18n.texts.publications.moderation.message_from_author }}

{{ trail1.publicationMessageFromAuthor }}
}
} @else if (trail1.publicationMessageFromModerator && (trail1Collection?.type === 'PUB_REJECT' || trail1Collection?.type === 'PUB_DRAFT')) {

{{ i18n.texts.publications.moderation.moderator_message }}

{{ trail1.publicationMessageFromModerator }}
} } @if (photos !== undefined && !isSmall && (editable || photos.length !== 0 || !!recording)) {
@if (photos.length === 0) {
{{i18n.texts.pages.trail.no_photo_message}}
} @else {
@if (editable || !!recording) { } }
} @if (trail1) { @if (tagsNames1 && !trail2 && trail1Collection && !isPublication) {
@if (tagsNames1.length === 0) { {{i18n.texts.pages.trail.no_tag_message}} } @else { @for (tag of tagsNames1; track tag) {
{{tag}}
} }
} @if (!trail2) { @if (trail1.description || editable) {
@if (!editable) {

} @else { @if (!editingDescription) {
} @else { } } @if (trail1.fromModeration && tracks.length > 0) { @defer { } }
} } } @if (!tracks[0]) { } @else { @if (trail1) { } @if (trail1 && !trail2) {
@if (!source?.isExternalOnly) {
{{i18n.texts.pages.trail.created_in_trailence_on}} {{i18n.timestampToDateTimeString(trail1.createdAt)}}
@if (trail1.createdAt !== trail1.updatedAt) {
{{i18n.texts.pages.trail.last_update_on}} {{i18n.timestampToDateTimeString(trail1.updatedAt)}}
} } @if (source?.sourceString; as source) { @for (element of i18n.textToHtml(source); track $index) { @if (typeof element === 'string') { {{ element }} } @else if (element.link.startsWith('/')) { {{ element.text }} } @else if (element.link) { {{ element.text }} } } } @if (source?.isExternalOnly && trail1.owner === 'trailence') {
{{i18n.texts.pages.trail.published_on}} {{i18n.timestampToDateString(trail1.createdAt)}} @if (source?.author) { {{i18n.texts.pages.trail.published_by}} {{source?.author}} @if (source?.info?.itsMine) { ({{i18n.texts.pages.trail.sections.comments.you}}) @if (source?.publishedFromTrail) { {{i18n.texts.pages.trail.published_from}} {{source!.publishedFromTrail!.name}} } } } @else if (source?.publishedFromTrail) { {{i18n.texts.pages.trail.published_by}} {{i18n.texts.pages.trail.sections.comments.you}} {{i18n.texts.pages.trail.published_from}} {{source!.publishedFromTrail!.name}} }
} @if (publishedTrail) {
{{i18n.texts.pages.trail.published_on}} {{i18n.timestampToDateString(publishedTrail.createdAt)}} : {{publishedTrail.name}}
}
} @if (source?.externalUrl; as url) { } @else { @if (editable) { } @else if (trail1?.sourceUrl; as url) { } } } @if ((myFeedback$ | async); as myFeedback) { @if (myFeedback.rateDate !== undefined) { @if (myFeedback.latestCommentDate !== undefined) { @if (i18n.timestampToDateString(myFeedback.latestCommentDate) === i18n.timestampToDateString(myFeedback.rateDate)) {
🙏 {{ 'pages.trail.my_feedback.you_leave_a_rate_and_a_comment_same_date' | i18nString:myFeedback.rate:i18n.timestampToDateString(myFeedback.rateDate) }}
} @else {
🙏 {{ 'pages.trail.my_feedback.you_leave_a_rate_and_a_comment_different_date' | i18nString:myFeedback.rate:i18n.timestampToDateString(myFeedback.rateDate):i18n.timestampToDateString(myFeedback.latestCommentDate) }}
} } @else {
🙏 {{ 'pages.trail.my_feedback.you_leave_a_rate' | i18nString:myFeedback.rate:i18n.timestampToDateString(myFeedback.rateDate) }}
} } @else { @if (myFeedback.latestCommentDate !== undefined) {
{{ 'pages.trail.my_feedback.you_leave_a_comment' | i18nString:myFeedback.rate:i18n.timestampToDateString(myFeedback.latestCommentDate) }}
} @if (source && !source.followedInfo?.itsMine && mine) {
{{ i18n.texts.pages.trail.my_feedback.invite_to_rate_title }}
{{ i18n.texts.pages.trail.my_feedback.invite_to_rate_button }}
} } } @if (tracks[0] && !toolsEnabled && (trail1?.originalTrackUuid !== trail1?.currentTrackUuid || trail2?.originalTrackUuid !== trail2?.currentTrackUuid)) {
{{i18n.texts.pages.trail.show_original}}
} @if (!isSmall) {
{{ i18n.texts.pages.trail.sections.waypoints.title }}
@if (trail1 && !trail2 && source?.isExternalOnly && (trail1.owner === 'trailence' || source?.info !== undefined)) {
{{ i18n.texts.pages.trail.sections.comments.title }}
} }
}
@if (graphZoomButtonPosition.value !== undefined) { }
@if (tracks[0] && isSmall && bottomSheetTab === 'info' && tab === 'map') {
} }
@if (isSmall) {
{{i18n.texts.pages.trail.tabs.details}}
{{i18n.texts.pages.trail.tabs.map}}
{{i18n.texts.pages.trail.tabs.photos}}
{{i18n.texts.pages.trail.tabs.waypoints}}
@if (!trail2 && trail1 && source?.isExternalOnly && (trail1.owner === 'trailence' || source?.info !== undefined)) {
{{i18n.texts.pages.trail.tabs.comments}}
}
}
@if (trail1 || recording) {
@if (!toolsEnabled && !positionningOnMap$.value) { }
@if (trail1 && !trail2) { @if (toolsEnabled && !recording) { } @else if (positionningOnMap$.value) { } }
@if (trail1 && !trail2 && toolsEnabled && !recording && toolsStack) { @for (tool of toolsStack.components; track tool) {
} }
}
@if (!isSmall || tab === 'map') {
@if (bottomSheetOpen) { @if (bottomSheetCustomHeight) { } @else { @if (maxBottomSheetHeight && maxBottomSheetHeight >= 200) { } } } @else { }
@if (bottomSheetOpen) {
@if (isSmall) {
}
}
} @if (isSmall) { @switch (tab) { @case ('photos') { @if (photos !== undefined) {
} } @case ('waypoints') {
} @case ('reviews') {
} } }
@if ((recording?.track || recording?.rawTrack)?.arrivalPoint; as currentPoint) {
@if (remaining) {
{{ i18n.texts.pages.trail.remaining_metadata_title }}
@if (remaining.ascent !== undefined) {
} @if (remaining.descent !== undefined) {
} } }