{{if $status->commentPageCount() > 1}} {template="statusPagination" group="profile" location="front" app="core" params="$status->url(), $status->commentPageCount(), $status->replies, \IPS\Request::i()->page ? intval( \IPS\Request::i()->page ) : 1, \IPS\core\Statuses\status::$commentsPerPage, 'prev'"} {{endif}} {{foreach $status->commentsForDisplay() as $comment}} {$comment->html()|raw} {{endforeach}} {{if !request.isAjax() and $status->commentPageCount() > 1}} {template="statusPagination" group="profile" location="front" app="core" params="$status->url(), $status->commentPageCount(), $status->replies, \IPS\Request::i()->page ? intval( \IPS\Request::i()->page ) : 1, \IPS\core\Statuses\status::$commentsPerPage, 'next'"} {{endif}}