{"Idea Stats"|gettext}

{if !$cPost->hasBlindVoting() && (!$hasMilestones || $currentMilestone->getConditionType() == 'score')} {assign var=post_id value=$cPost->id} {assign var=maxValueKey value=$arrVotes.$post_id.mostPopularVote} {assign var=minValueKey value=$arrVotes.$post_id.leastPopularVote} {assign var=graphSize value=106} {assign var=graphScale value=$graphSize/$arrVotes.$post_id.values.$maxValueKey} {assign var=votingScheme value=$cPost->getVotingScheme(intval($smarty.request.forPhase))} {assign var=optionOptions value=$cPost->getVotingSchemeOption(intval($smarty.request.forPhase))} {if $maxValueKey eq 0} {assign var=graphScale value=0} {/if} {if $votingScheme eq 'updown'}
{$arrVotes.$post_id.values[1]|intval}
{$arrVotes.$post_id.values[-1]|intval}
{elseif $votingScheme eq 'stars'} {if $optionOptions.maxStars gt 4}
{$arrVotes.$post_id.values[5]|intval}
{/if} {if $optionOptions.maxStars gt 3}
{$arrVotes.$post_id.values[4]|intval}
{/if}
{$arrVotes.$post_id.values[3]|intval}
{$arrVotes.$post_id.values[2]|intval}
{$arrVotes.$post_id.values[1]|intval}
{/if} {/if}
{if $cPost->getShowVoters(intval($smarty.request.forPhase))}

{"Voters"|gettext} ({$usersWhoVoted|@count})

{assign var=counter value=1} {assign var=showLimit value=6}
{foreach from=$usersWhoVoted item=cfUser name=showVoterLoop} {if $counter eq $showLimit+1}
{/if} {assign var='selectedFile' value=$usersWhoVotedAvatarFiles[$cfUser->data['user_profilepic']]}
data.user_id}> {$cfUser->getDisplayName()|escape}
{* For vote types that have the icon first *} {if $votingScheme eq 'updown'} {if $usersWhoVotedScores[$cfUser->data.user_id] gt 0} {else} {/if} {else if $votingScheme eq 'up'} {else if $votingScheme eq 'stars'} {/if} {* The actual vote value *} {if $votingScheme eq 'updown'} {if $usersWhoVotedScores[$cfUser->data.user_id] gt 0} +1 {else} -1 {/if} {else if $votingScheme eq 'up'} 1 {else} {$usersWhoVotedScores[$cfUser->data.user_id]} {/if} {* For vote types that have the icon last *} {if $votingScheme eq 'stars'} {/if}
{if $counter gt $showLimit && $smarty.foreach.showVoterLoop.last}
{/if} {assign var=counter value=$counter + 1} {foreachelse} {"There are no votes on this idea"|gettext} {/foreach}
{if count($usersWhoVoted) gt $showLimit} {assign var=remainingVoters value=count($usersWhoVoted) - $showLimit}
See {$remainingVoters} more
{/if}
{/if}