{assign var='commentId' value=$cComment->data.post_id} {assign var="votedownindex" value='-1'} {assign var='thisCommentVotesUp' value=$arrVotes.$commentId.values[1]|intval} {assign var='thisCommentVotesDown' value=$arrVotes.$commentId.values.$votedownindex|intval} {assign var='x' value=$cComment->data.post_lvl} {if $x gt 6}{assign var='x' value=6}{/if}
{assign var='selectedFileId' value=$cComment->joined.obj_post_user->data.user_profilepic} {assign var='selectedFile' value=$avatarFiles.$selectedFileId} getCloudinaryURL(43,43)}{else}{$vars.resourcesUrl}profile_counter43.png{/if}", '', (bool){intval($selectedFileId) eq 0})}" />
data.post_id eq $highlightPost}id="scrollToHere"{/if} style="width:{math equation="600-((x-1)*50)" x=$x}px;">
{$cComment->joined.obj_post_user->user_displayName} {if $cComment->joined.obj_post_user->user_usertype->data.usertype_id ne 3 && intval($cComment->joined.obj_post_user->user_usertype->data.usertype_id) ne 0} ({$cComment->joined.obj_post_user->user_usertype->data.usertype_name}){/if} {"says"|gettext}... {$cComment->data.post_created|relative_date}
{assign var='post_id' value=$cComment->data.post_id} {if isset($commentVotesUser.$post_id)} {assign var='userVote' value=$commentVotesUser.$post_id} {assign var='userVoteDir' value=$userVote->data.vote_direction} {else} {assign var='userVoteDir' value=0} {/if}
    {if intval($smarty.request.forPhase) eq 0 || $category->tempData.phase->data.phase_id eq $smarty.request.forPhase} {if $categoryaccess->getData('canVoteComments')}
  • {"Demote"|gettext} {$thisCommentVotesDown}
  • {/if} {/if}
{if $cComment->data.post_moderationstatus ne 3}
{$cComment->getCommentText()|nl2br} {if $cComment->data.post_moderatoredituser ne 0} {assign var=modId value=$cComment->data.post_moderatoredituser} {assign var=moderator value=$moderators.$modId}

{"This comment was edited on"|gettext} {$cComment->data.post_moderatoreditdate|date_format} by data.user_id}>{$moderator->getDisplayName()}

{/if}
{else}
{"Comment removed"|gettext}  {"by a moderator"|gettext}
{/if}