{assign var='thisPostVotesUp' value=0} {assign var='thisPostVotesDown' value=0} {foreach from=$postVotesUp item=cPVU} {if $cPVU.vote_post eq $cPost->data.post_id} {assign var='thisPostVotesUp' value=$cPVU.vote_total} {/if} {/foreach} {foreach from=$postVotesDown item=cPVU} {if $cPVU.vote_post eq $cPost->data.post_id} {assign var='thisPostVotesDown' value=$cPVU.vote_total} {/if} {/foreach}
{"Back"|gettext}
{"Idea score"|gettext} {math equation="x - y" x=$thisPostVotesUp y=$thisPostVotesDown assign='voteTotal'} {$voteTotal} {if $voteTotal ne 1 && $voteTotal ne -1}{"POINTS"|gettext}{else}{"POINT"|gettext}{/if}
{assign var='post_id' value=$cPost->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 $hubbub->data.hubbub_closed eq 0 && $hubbub->hubbub_arrOptions.allowSocialShare}
{"Share"|gettext}
{/if}

{"Idea ranking"|gettext}

{$rankingCategory}{*{$rankingCategory|ordinalonly}*}
in {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} {$cPost->joined.obj_post_category->data.category_name}

Idea stats

{"Comments"|gettext} {$postResponses|@count}
{"Subscribers"|gettext} {$userFollowingPostIds|@count}
{"Community rank"|gettext} {$rankingHere}
{"Total votes"|gettext} {math equation="x+y" x=$thisPostVotesUp y=$thisPostVotesDown}
{"Votes"|gettext} + {$thisPostVotesUp}
{"Votes"|gettext} - {$thisPostVotesDown}

{"Subscribers"|gettext}

{"This post has"|gettext} {$userFollowingPostIds|@count} {if $userFollowingPostIds|@count ne 1}{"subscribers"|gettext}{else}{"subscriber"|gettext}{/if}

{foreach from=$followingUsers item=cfUser} {assign var='selectedFile' value=$cfUser->joined.obj_user_profilepic} data.user_id} class="smallAvatarLink" style="{if intval($selectedFile->data.file_id) ne 0}background-image:url({$selectedFile->getCloudinaryURL(22, 22)});{else}background-image:url({$vars.resourcesUrl}profile_counter22.png);{/if}">{$cfUser->getDisplayName()} {/foreach}
{if $user->data.user_id ne $cPost->data.post_user}
{if in_array($user->data.user_id,$userFollowingPostIds)} {"Unsubscribe"|gettext} {else} {"Subscribe"|gettext} {/if}
{/if}