{** * templates/submission/comment/comment.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. * * Form to enter comments. * *} {strip} {include file="submission/comment/header.tpl"} {/strip}
{foreach from=$articleComments item=comment} {foreachelse} {/foreach}
{translate key=$comment->getRoleName()}
{$comment->getDatePosted()|date_format:$datetimeFormatShort}
{if $comment->getAuthorId() eq $userId and not $isLocked} {/if}
{if $comment->getCommentTitle() neq ""}
{translate key="submission.comments.subject"}: {$comment->getCommentTitle()|escape}
{/if}
{$comment->getComments()|strip_unsafe_html|nl2br}
{translate key="submission.comments.noComments"}


{if not $isLocked}
{if $hiddenFormParams} {foreach from=$hiddenFormParams item=hiddenFormParam key=key} {/foreach} {/if}
{include file="common/formErrors.tpl"}
{fieldLabel name="commentTitle" key="submission.comments.subject"}
{fieldLabel name="comments" required="true" key="submission.comments.comments"}

{translate key="common.requiredField"}

{else} {/if} {include file="submission/comment/footer.tpl"}