isLastPage('reviews')}}data-lastPage{{endif}} data-feedID='event-{$event->id}-reviews' id='reviews'> {{if $event->canReview()}} {{if $event->locked()}} {lang="item_locked_can_review"} {{endif}}
{$event->reviewForm()|raw}
{{else}} {{if $event->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()->restrict_post"} {{endif}} {{endif}} {{if count( $event->reviews() )}}
{{if $event->reviewPageCount() > 1}}
{$event->reviewPagination( array( 'tab', 'sort' ) )|raw}
{{endif}}

{{$reviewCount=0; $timeLastRead = $event->timeLastRead(); $lined = FALSE;}} {{foreach $event->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="$event, 'review'"}
{{if $event->reviewPageCount() > 1}}
{$event->reviewPagination( array( 'tab', 'sort' ) )|raw} {{endif}} {{endif}}