{*if !$categoryaccess->getData('blindVoting')*}
{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|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}- *} {*if !$categoryaccess->getData('previewVoting')} {/if*} {elseif $categoryaccess->getData('votingScheme') eq 'up'} {*{math equation="x - y" x=$thisPostVotesUp y=$thisPostVotesDown assign='voteTotal'}*} {if $category instanceof Crowdicity\Category && $category->isIncubatorChallenge()} {$voteTotal|intval} {if $category instanceof Crowdicity\Category && $category->isIncubatorChallenge()} {if $cPost->getCurrentMilestone() && $cPost->getCurrentMilestone()->getConditionType() eq 'score'} /{$cPost->getCurrentMilestone()->getTarget()} {/if} {/if} {else} {$voteTotal|intval} {/if} {*{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}- *} {*if !$categoryaccess->getData('previewVoting')} {/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}- *} {*if !$categoryaccess->getData('previewVoting')} {/if*} {elseif $categoryaccess->getData('votingScheme') eq 'scorecard'} {if $category->isPhased()} {assign var=postScore value=Scorecard::getOverAllScore(Scorecard::getForPost($cPost, 'phase', $cPost->endphase))} {else} {assign var=postScore value=Scorecard::getOverAllScore(Scorecard::getForPost($cPost))} {/if} {*{math equation="x - y" x=$thisPostVotesUp y=$thisPostVotesDown assign='voteTotal'}*} {*{$voteTotal}*}{$postScore} {*{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}- *} {*if !$categoryaccess->getData('previewVoting')} {/if*} {elseif $categoryaccess->getData('votingScheme') eq 'stars'} {*
{"Average score"|gettext}
*} {if $voteTotal eq 0}
{"n/a"|gettext}
{*if !$categoryaccess->getData('previewVoting')} {/if*} {else} {*if !$categoryaccess->getData('previewVoting')} {/if*} {assign var=voteTotalInteger value=$voteTotal|floor} {assign var=voteTotalFraction value=$voteTotal*11-$voteTotalInteger*11} {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}
{*/if*}