{assign var=replies value=intval($postResponseCounts[$cPost->data.post_id].commentCount)} {if $categoryaccess->getData('canVoteIdeas')}
{assign var='voteTotal' value=$cPost->joined.obj_postvotecount->data.postvotecount_votes} {assign var='votingData' value=$cPost->getVotingData()} {if $cPost->getVotingScheme() eq 'updown' || !$cPost->getVotingScheme()} {if !$cPost->hasBlindVoting() || $categoryaccess->getData('canModerate') neq 0}
{$votingData.totalVotes|intval} {"Score"|gettext}
{/if}
{elseif $cPost->getVotingScheme() eq 'up'} {if !$cPost->hasBlindVoting() || $categoryaccess->getData('canModerate') neq 0}
{if $category instanceof Crowdicity\Category && $category->isIncubatorChallenge()} {$voteTotal|intval} {* {if $cPost->getCurrentMilestone() && $cPost->getCurrentMilestone()->getConditionType() eq 'score'} /{$cPost->getCurrentMilestone()->getTarget()} {/if} *} {else} {$voteTotal|intval} {/if} {"Score"|gettext}
{/if}
{elseif $cPost->getVotingScheme() eq 'pointsAward'} {assign var=optionOptions value=$categoryaccess->getData('votingScheme_optionOptions')} {if !$cPost->hasBlindVoting() || $categoryaccess->getData('canModerate') neq 0}
{$voteTotal|intval} {if $categoryaccess->getData('renameScoring')} {"Score"|gettext} {else} {"Points"|gettext} {/if}
{/if}
{if $votingData.userVote}
{"Your Score"|gettext}
{$votingData.userVote}/{$optionOptions.maxScore}
{"Change Score"|gettext}
{else}
{if $categoryaccess->getData('renameScoring')}{"Award Votes"|gettext}{else}{"Award Points"|gettext}{/if}
{/if}
    {for $var=1 to $optionOptions.maxScore}
  • {$var}
  • {/for}
{elseif $cPost->getVotingScheme() eq 'stars'} {assign var=voteTotalInteger value=$voteTotal|floor} {assign var=voteTotalFraction value=$voteTotal*11-$voteTotalInteger*11} {assign var=voteTotalFractionOn value=$voteTotalInteger+1} {assign var=optionOptions value=$categoryaccess->getData('votingScheme_optionOptions')} {if !$cPost->hasBlindVoting() || $categoryaccess->getData('canModerate') neq 0}
{for $var=1 to $optionOptions.maxStars} {/for}
{(int)$votingData.totalVotes} {if (int)$votingData.totalVotes eq 1}{"Rating"|gettext}{else}{"Ratings"|gettext}{/if}
{/if}
{for $var=1 to $optionOptions.maxStars} {/for}
{/if}
{/if} {$replies}