@if (info) {
@if (info.rating !== undefined) { @if (myRate !== undefined && myRate !== null) { }
{{ i18n.texts.pages.trail.sections.comments.rate.global }} @if (info.nbRates) {{{ 'pages.trail.sections.comments.rate.global_on_nb' | i18nString:info.nbRates }}}
{{ i18n.texts.pages.trail.sections.comments.rate.yours }}
@if (info.nbRate0 || info.nbRate1 || info.nbRate2 || info.nbRate3 || info.nbRate4 || info.nbRates) {
@let total = info.nbRates ?? 1;
@let nb5 = info.nbRate5 ?? 0;
@let nb4 = info.nbRate4 ?? 0;
@let nb3 = info.nbRate3 ?? 0;
@let nb2 = info.nbRate2 ?? 0;
@let nb1 = info.nbRate1 ?? 0;
@let nb0 = info.nbRate0 ?? 0;
} } @else {
{{ i18n.texts.pages.trail.sections.comments.rate.no_rate }}
}
}
@if (trail && !info?.itsMine && authenticated && connected && myRate !== undefined) { @if (myRate === null) { {{ i18n.texts.pages.trail.sections.comments.rate.write_a_review }} } @else { {{ i18n.texts.pages.trail.sections.comments.rate.change_rate_or_review }} } }
@if (!authenticated) {
{{ i18n.texts.pages.trail.sections.comments.not_authenticated }}
} @else if (!connected && feedbacks === undefined) {
{{ i18n.texts.pages.trail.sections.comments.not_connected }}
} @if (feedbacks !== undefined && trail) {
@if (filterRate !== undefined) {
{{ 'pages.trail.sections.comments.show_reviews_with_rate' | i18nString:filterRate }}
} @else if (hasFollowedThisTrail) {
{{i18n.texts.pages.trail.sections.comments.filter_has_done_this_trail}}
} @for (fb of feedbacks; track fb.uuid) { @if (showFollowedThisTrail || fb.comment || fb.rate !== undefined) { } }
@if (!loadingComments) { @if (!lastPage) { {{ i18n.texts.pages.trail.sections.comments.load_more_comments }} } } @else { }
}