{* count votes *} {*{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=cPVD} {if $cPVD.vote_post eq $cPost->data.post_id} {assign var='thisPostVotesDown' value=$cPVD.vote_total} {/if} {/foreach}*} {if isset($targetHubbub)} {assign var='postHubbub' value=$targetHubbub} {elseif $cPost->data.post_hubbub ne $hubbub->data.hubbub_id} {assign var='postHubbubId' value=$cPost->data.post_hubbub} {assign var='postHubbub' value=$hubbubList.$postHubbubId} {else} {assign var='postHubbub' value=$hubbub} {/if} {* count replies *} {counter assign="replies" start=0} {foreach from=$postResponses item=cComment} {if $cComment->data.post_topparent eq $cPost->data.post_id} {counter} {/if} {/foreach} {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='categoryaccess' value=$postCategory->getAccess()} {* find tags *} {* {assign var='tagList' value=$tags.$post_id} *}
{if $categoryaccess->getData('canVoteIdeas') && !$cPost->hasBlindVoting()}
{assign var='voteTotal' value=$cPost->joined.obj_postvotecount->data.postvotecount_votes} {if $categoryaccess->getData('votingScheme') eq 'updown' || !$categoryaccess->getData('votingScheme')} {*{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 $categoryaccess->getData('votingScheme') 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 $categoryaccess->getData('votingScheme') 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 $categoryaccess->getData('votingScheme') 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} {/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|truncate:30}

{"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::$list[$cPost->data.post_category]} {Translation::t($cat, 'category_name')}

{if $isAjax} {/if}