{_"comments"} ({$count})

{var commentsURL = "/al_comments.pl/create/$model/" . $parent->getId()} {include "textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti")}
{if sizeof($comments) > 0} {foreach $comments as $comment} {include "comment.xml", comment => $comment} {/foreach} {include "paginator.xml", conf => (object) ["page" => $page, "count" => $count, "amount" => sizeof($comments), "perPage" => 10]} {else} {_"comments_tip"} {/if} {script "js/al_comments.js"}