{** * templates/article/comments.tpl * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2003-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Article View -- Comments component. * *} {if $comments}
{translate key="comments.commentsOnArticle"}
{foreach from=$comments item=comment} {assign var=poster value=$comment->getUser()}-
getId()|to_array:$galleyId:$comment->getId()}" target="_parent">{$comment->getTitle()|escape|default:" "}
{if $comment->getChildCommentCount()==1}
{translate key="comments.oneReply"}
{elseif $comment->getChildCommentCount()>0}
{translate key="comments.nReplies" num=$comment->getChildCommentCount()}
{/if}
{/foreach}
getId()|to_array:$galleyId}" class="action" target="_parent">{translate key="comments.viewAllComments"} {assign var=needsSeparator value=1}{if $poster} {url|assign:"publicProfileUrl" page="user" op="viewPublicProfile" path=$poster->getId()} {translate key="comments.authenticated" userName=$poster->getFullName()|escape publicProfileUrl=$publicProfileUrl} {elseif $comment->getPosterName()} {translate key="comments.anonymousNamed" userName=$comment->getPosterName()|escape} {else} {translate key="comments.anonymous"} {/if} ({$comment->getDatePosted()|date_format:$dateFormatShort})