{assign var='post_id' value=$cPost->data.post_id} {assign var='postCategory_id' value=$cPost->data.post_category} {assign var='postCategory' value=Category::$list.$postCategory_id} {assign var='parentCategory' value=Category::getParent($postCategory_id)} {assign var='categoryaccess' value=$postCategory->getAccess()} {assign var=currentMilestone value=$cPost->getCurrentMilestone()} {* find tags *} {* {assign var='tagList' value=$tags.$post_id} *}
{*if $categoryaccess->getData('canVoteIdeas') && !$categoryaccess->getData('blindVoting')*} {if !$cPost->hasBlindVoting()}
{assign var='voteTotal' value=$cPost->joined.obj_postvotecount->data.postvotecount_votes} {if $cPost->getVotingScheme() eq 'updown'} {*{math equation="x - y" x=$thisPostVotesUp y=$thisPostVotesDown assign='voteTotal'}*}
{*{$voteTotal}*}{$voteTotal}
{*{if $voteTotal ne 1 && $voteTotal ne -1}{"Vote"|gettext|strtoupper}{else}{"Vote"|gettext|strtoupper}{/if}*}{*{if $cPost->joined.obj_postvotecount->data.postvotecount_votes ne 1 && $cPost->joined.obj_postvotecount->data.postvotecount_votes ne -1}S{/if}*}
{elseif $cPost->getVotingScheme() eq 'up'} {*{math equation="x - y" x=$thisPostVotesUp y=$thisPostVotesDown assign='voteTotal'}*}
{*{$voteTotal}*}{$voteTotal}
{*{if $voteTotal ne 1 && $voteTotal ne -1}{"Vote"|gettext|strtoupper}{else}{"Vote"|gettext|strtoupper}{/if}*}{*{if $cPost->joined.obj_postvotecount->data.postvotecount_votes ne 1 && $cPost->joined.obj_postvotecount->data.postvotecount_votes ne -1}S{/if}*}
{elseif $cPost->getVotingScheme() eq 'pointsAward'} {*{math equation="x - y" x=$thisPostVotesUp y=$thisPostVotesDown assign='voteTotal'}*}
{*{$voteTotal}*}{$voteTotal|intval}
{*{if $voteTotal ne 1 && $voteTotal ne -1}{"Votes"|gettext|strtoupper}{else}{"Vote"|gettext|strtoupper}{/if}*}{*if $cPost->joined.obj_postvotecount->data.postvotecount_votes ne 1 && $cPost->joined.obj_postvotecount->data.postvotecount_votes ne -1}S{/if*}
{* {$thisPostVotesUp}+ {$thisPostVotesDown}- *} {elseif $cPost->getVotingScheme() eq 'stars'} {*
{"Average score"|gettext}
*} {if $voteTotal eq 0}
{"n/a"|gettext}
{else} {assign var=voteTotalInteger value=$voteTotal|floor} {assign var=voteTotalFraction value=$voteTotal*7-$voteTotalInteger*7} {assign var=voteTotalFractionOn value=$voteTotalInteger+1} {assign var=optionOptions value=$categoryaccess->getData('votingScheme_optionOptions')}
{if $optionOptions.maxStars gt 3}
{/if} {if $optionOptions.maxStars gt 4}
{/if}
{/if} {else if $cPost->getVotingScheme() eq 'scorecard'} {if $parentCategory->isPhased()} {assign var=postScore value=Scorecard::getOverAllScore(Scorecard::getForPost($cPost, 'phase', $cPost->endphase))} {elseif $parentCategory->isIncubatorChallenge()} {if $currentMilestone->getConditionType() eq 'score'} {assign var=scorecardResults value=Scorecard::getForPost($cPost, 'category', 0, $currentMilestone->id)} {assign var=postScore value=Scorecard::getOverAllScore($scorecardResults)} {/if} {else} {assign var=postScore value=Scorecard::getOverAllScore(Scorecard::getForPost($cPost))} {/if}
{$postScore}
{/if}
{*{else if !$categoryaccess->getData('canVoteIdeas')}
{"n/a"|gettext}
*} {else if $cPost->hasBlindVoting()}
{"n/a"|gettext}
{/if}
{assign var=postPhasePosition value=$postCategory->getPhasePosition($cPost->data.post_endphase)} {assign var=categoryPhasePosition value=$postCategory->getPhasePosition($postCategory->getCurrentPhaseId())}

{$cPost->data.post_title}

{"Posted 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} {assign var='parentCat' value=Category::$list.$parentCatId} {$parentCat->data.category_name} | {/if}*} {assign var='cat' value=Category::getParent($cPost->data.post_category)} {Translation::t($cat, 'category_name')}

{if $isAjax} {/if}