@if (loading) {
Getting latest reviews...
} @else if (reviews?.length === 0) {
@if (hasPermission && !reviewsLocked && reviewDownloadEnabled) { }

No reviews available for this book

@if (!reviewDownloadEnabled) {

Book review downloads are currently disabled. Enable this in Metadata Settings to fetch reviews.

} @else if (hasPermission && !reviewsLocked) {

Click "Fetch Reviews" to download reviews from configured providers

}
} @else {
@for (review of reviews; track review.id || $index) {
@if (review.spoiler && !isSpoilerRevealed(review.id!)) { }
{{ review.reviewerName || 'Anonymous' }} @if (review.metadataProvider) { } @if (review.country) { } @if (review.spoiler) { }
@if (review.date) { {{ formatDate(review.date) }} }
@if (review.rating) {
{{ review.rating }}/5
} @if (hasPermission) { @if (reviewsLocked) {
} @else { } }
@if (review.title && (!review.spoiler || isSpoilerRevealed(review.id!))) {

#### {{ review.title }}

}
@if (review.spoiler && !isSpoilerRevealed(review.id!)) {
@if (review.title) {

#### {{ review.title }}

} @if (review.body) {
{{ review.body }}
} @else {
No review content available
}
} @else { @if (review.body) {
{{ review.body }}
} @else {
No review content available
} }
}
}
@if (hasPermission) { } @if (hasPermission && reviews && reviews.length > 0) { } @if (reviews && reviews.length > 0) { }