{assign var=optionOptions value=$categoryaccess->getData('votingScheme_optionOptions')} {assign var=post_id value=$cPost->data.post_id}
data.post_category eq 296}style="display:none;"{* HACK (296) *}{/if}>
{*if !$categoryaccess->getData('blindVoting')*}

{"Idea ranking"|gettext}

{$rankingCategory}{*{$rankingCategory|ordinalonly}*}
{"in"|gettext} {if $cPost->joined.obj_post_category->data.category_parent ne 0} {assign var='parentCatId' value=$cPost->joined.obj_post_category->data.category_parent} {Category::$list.$parentCatId->data.category_name}{* | *} {*{/if}*} {else} {$cPost->joined.obj_post_category->data.category_name} {/if}

{*/if*}

{"Idea stats"|gettext}

{"Comments"|gettext}
{$postResponses|@count}
{"Subscribers"|gettext}
{$userFollowingPostIds|@count}
{"Community rank"|gettext}
{*if !$categoryaccess->getData('blindVoting')*}{$rankingHere}{*else}n/a{/if*}
{*if !$categoryaccess->getData('blindVoting')*}
{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} {if $maxValueKey eq 0} {assign var=graphScale value=0} {/if} {if $categoryaccess->getData('votingScheme') eq 'updown' || !$categoryaccess->getData('votingScheme')}

{"Score breakdown"|gettext}

{"Votes"|gettext} +
{$arrVotes.$post_id.values[1]|intval}
{assign var="votedownindex" value='-1'}
{"Votes"|gettext} -
{$arrVotes.$post_id.values.$votedownindex|intval}
{"Total votes"|gettext}
{$arrVotes.$post_id.totalVotes|intval}
{elseif $categoryaccess->getData('votingScheme') eq 'stars'}

{"Score breakdown"|gettext}

1 {"star"|gettext}
{$arrVotes.$post_id.values[1]|intval}
2 {"stars"|gettext}
{$arrVotes.$post_id.values[2]|intval}
3 {"stars"|gettext}
{$arrVotes.$post_id.values[3]|intval}
{if $optionOptions.maxStars gt 3}
4 {"stars"|gettext}
{$arrVotes.$post_id.values[4]|intval}
{/if} {if $optionOptions.maxStars gt 4}
5 {"stars"|gettext}
{$arrVotes.$post_id.values[5]|intval}
{/if}
{"Total ratings"|gettext}
{$arrVotes.$post_id.totalVotes|intval}
{"Average"|gettext}
{$voteTotal|round:2}
{if $optionOptions.maxStars gt 3}
{/if} {if $optionOptions.maxStars gt 4}
{/if}
{/if}
{*/if*}