isLastPage('reviews')}}data-lastPage{{endif}} data-feedID='image-{$image->id}-reviews' id='reviews'> {{if $image->canReview()}} {{if $image->locked()}} {lang="item_locked_can_review"} {{endif}}
{$image->reviewForm()|raw}
{{else}} {{if $image->locked()}} {template="commentUnavailable" group="forms" location="front" app="core" params="'item_locked_cannot_comment'"} {{elseif \IPS\Member::loggedin()->restrict_post}} {template="commentUnavailable" group="forms" location="front" app="core" params="'restricted_cannot_comment', \IPS\Member::loggedIn()->warnings(5,NULL,'rpa'), \IPS\Member::loggedIn()->restrict_post"} {{elseif $image->hasReviewed()}} {{elseif \IPS\Member::loggedIn()->restrict_post}} {template="reviewUnavailable" group="forms" location="front" app="core" params="'restricted_cannot_comment'"} {{elseif \IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings']}} {template="reviewUnavailable" group="forms" location="front" app="core" params="'unacknowledged_warning_cannot_post', \IPS\Member::loggedIn()->warnings( 1, FALSE )"} {{endif}} {{endif}} {{if count( $image->reviews() )}} {{if !$image->hasReviewed()}}
{{endif}}
{{if $image->reviewPageCount() > 1}}
{$image->reviewPagination( array( 'tab', 'sort' ) )|raw}
{{endif}}
{{$reviewCount=0; $timeLastRead = $image->timeLastRead(); $lined = FALSE;}} {{foreach $image->reviews() as $review}} {{if !$lined and $timeLastRead and $timeLastRead->getTimestamp() < $review->mapped('date')}} {{if $lined = TRUE and $reviewCount}}
{{endif}} {{endif}} {{$reviewCount++;}} {$review->html()|raw} {{endforeach}} {template="commentMultimod" app="core" group="global" params="$image, 'review'"}
{{if $image->reviewPageCount() > 1}}
{$image->reviewPagination( array( 'tab', 'sort' ) )|raw}
{{endif}} {{elseif !$image->canReview()}}

{lang="no_reviews"}

{{endif}}