{* Used on first call, with page load *} {assign var='selectedcategoryaccess' value=$selectedCategory->getAccess()} {assign var='showNewestTab' value=in_array("newest", $overviewCategory->options['enabledTabs'])} {assign var='showOldestTab' value=in_array("oldest", $overviewCategory->options['enabledTabs'])} {assign var='showRandomTab' value=in_array("random", $overviewCategory->options['enabledTabs'])} {assign var='showVotingTab' value=true} {assign var='showMostCommentsTab' value=in_array("mostComments", $overviewCategory->options['enabledTabs'])} {if isset($forPhaseObject)} {if (!$forPhaseObject->joined.access->getData('canVoteIdeas') || $forPhaseObject->joined.access->getData('blindVoting') || !in_array("mostPopular", $overviewCategory->options['enabledTabs'])) && $forPhaseObject->joined.access->getData('canModerate')!=1} {assign var='showVotingTab' value=false} {/if} {else} {*if !$selectedcategoryaccess->getData('canVoteIdeas') || $selectedcategoryaccess->getData('blindVoting') || !in_array("mostPopular", $overviewCategory->options['enabledTabs'])*} {if ($selectedcategoryaccess->getData('blindVoting') || !in_array("mostPopular", $overviewCategory->options['enabledTabs'])) && $selectedcategoryaccess->getData('canModerate')!=1} {assign var='showVotingTab' value=false} {/if} {/if}
{if isset($smarty.request.q)}
Showing {*{$posts|count}*} results{**} for
"{$smarty.request.q|escapeonce}"
{/if}
id}style="margin:auto;width:792px;"{/if}>
{if $category->id}

{"Filters"|gettext}

{if $category->isIncubatorChallenge()} {include file=Template::get('category/sidebar_milestones.html')} {/if} {include file=Template::get('category/sidebar_themes.html')} {if $hubbub->hubbub_arrOptions.tagsEnabled eq 1} {include file=Template::get('category/sidebar_tags.html')} {/if} {if count(Ideastatus::getStatuses()) gt 0 && $category->data.category_usercreated neq 1} {include file=Template::get('category/sidebar_statuslabels.html')} {/if} {if $hubbub->hubbub_arrOptions.showUserScores eq 1} {include file=Template::get('hubbub/leaderboard_sidebar.html')} {/if}
{/if}
{assign var=categoryaccess value=$category->getAccess()} {if $allowanceLeft && $categoryaccess->getData('canVoteIdeas') && $user->id}
{if $categoryaccess->getData('votingScheme') eq 'up' || $categoryaccess->getData('votingScheme') eq 'updown' || $categoryaccess->getData('votingScheme') eq 'stars' || $categoryaccess->getData('votingScheme') eq 'scorecard'} {if $allowanceLeftValue != 1} {assign var=walletScore value=$allowanceLeftValue} {assign var=walletStyle value={"votes"|gettext}} {if $category->isPhased()} {assign var=walletText value={"You have %s votes remaining in this phase, once these votes have been used you will no longer be able to vote so please use them wisely."|gettext|sprintf:$allowanceLeftValue}} {else} {assign var=walletText value={"You have %s votes remaining in this challenge, once these votes have been used you will no longer be able to vote so please use them wisely."|gettext|sprintf:$allowanceLeftValue}} {/if} {else} {assign var=walletScore value=1} {assign var=walletStyle value={"vote"|gettext}} {if $category->isPhased()} {assign var=walletText value={"You have 1 vote remaining in this phase, once this vote has been used you will no longer be able to vote so please use it wisely."|gettext}} {else} {assign var=walletText value={"You have 1 vote remaining in this challenge, once this vote has been used you will no longer be able to vote so please use it wisely."|gettext}} {/if} {/if} {else if $categoryaccess->getData('votingScheme') eq 'pointsAward'} {if $allowanceLeftValue != 1} {if $categoryaccess->getData('renameScoring')} {assign var=walletScore value=$allowanceLeftValue} {assign var=walletStyle value={"votes"|gettext}} {if $category->isPhased()} {assign var=walletText value={"You have %s votes remaining in this phase, once these votes have been used you will no longer be able to vote so please use them wisely."|gettext|sprintf:$allowanceLeftValue}} {else} {assign var=walletText value={"You have %s votes remaining in this challenge, once these votes have been used you will no longer be able to vote so please use them wisely."|gettext|sprintf:$allowanceLeftValue}} {/if} {else} {assign var=walletScore value=$allowanceLeftValue} {assign var=walletStyle value={"points"|gettext}} {if $category->isPhased()} {assign var=walletText value={"You have %s points remaining in this phase, once these points have been used you will no longer be able to rate ideas so please use them wisely."|gettext|sprintf:$allowanceLeftValue}} {else} {assign var=walletText value={"You have %s points remaining in this challenge, once these points have been used you will no longer be able to rate ideas so please use them wisely."|gettext|sprintf:$allowanceLeftValue}} {/if} {/if} {else} {if $categoryaccess->getData('renameScoring')} {assign var=walletScore value=1} {assign var=walletStyle value={"vote"|gettext}} {if $category->isPhased()} {assign var=walletText value={"You have 1 vote remaining in this phase, once this vote has been used you will no longer be able to vote so please use it wisely."|gettext}} {else} {assign var=walletText value={"You have 1 vote remaining in this challenge, once this vote has been used you will no longer be able to vote so please use it wisely."|gettext}} {/if} {else} {assign var=walletScore value=1} {assign var=walletStyle value={"point"|gettext}} {if $category->isPhased()} {assign var=walletText value={"You have 1 point remaining in this phase, once this point has been used you will no longer be able to rate ideas so please use it wisely."|gettext}} {else} {assign var=walletText value={"You have 1 point remaining in this challenge, once this point has been used you will no longer be able to rate ideas so please use it wisely."|gettext}} {/if} {/if} {/if} {/if} {if $allowanceLeftValue==0}
{"No votes remaining"|gettext}
{else}
{$walletScore}
{$walletStyle}
{"remaining"|gettext}
{$walletText}
{/if}
{/if} {if $selectedcategoryaccess->getData('votingScheme') eq 'scorecard' || $category->isIncubatorChallenge()} {*Scorecard::getQuestions($overviewCategory->id)|print_r*} {foreach from=Scorecard::getQuestions($overviewCategory->id, 'category', 0, false, true) item=criteria} {/foreach} {/if} {if $category->canUserModerate() && !isset($smarty.request.q)} {/if} {if isset($forPhaseObject) && $forPhaseObject->joined.access->getData('ideaVisibility') eq 1 || ($category->isIncubatorChallenge() && $milestoneWithPrivateSubmissions) || (!isset($forPhaseObject) && $selectedcategoryaccess->getData('ideaVisibility') eq 1) }

{if $category->isIncubatorChallenge()} {'Private idea submission is enabled on some milestones in this challenge.'|gettext} {if $isCurrentUserModerator} {'For these milestones, users can only see ideas they have submitted, but as you are a moderator you can view all ideas.'|gettext} {else} {'For these milestones, you will only see ideas you have submitted.'|gettext} {/if} {else} {'Private idea submission is enabled on this challenge.'|gettext} {if $isCurrentUserModerator} {'As you are a moderator you can view all ideas, but users cannot view each other’s ideas.'|gettext} {else} {'You can only view ideas you have submitted.'|gettext} {/if} {/if}

{/if}
{assign var='counter' value=1} {assign var='pendingCounter' value=0} {assign var='adoptedCounter' value=0} {assign var='closedCounter' value=0} {assign var='removedCounter' value=0} {assign var='loadedPosts' value=0} {assign var='initialPostCount' value=$posts|count} {foreach from=$posts item=cPost} {assign var='postCategory_id' value=$cPost->data.post_category} {assign var='postCategory' value=Category::getParent($postCategory_id)} {assign var='loadedPosts' value=$loadedPosts|cat:",":$cPost->id} {if $postCategory->isIncubatorChallenge()} {assign var='milestoneCollection' value=Milestone::getCollection($postCategory->id, $cPost)} {Milestone::assess($milestoneCollection, $cPost)} {/if} {include file=Template::get('category/view_postPreview.html') postCategory=$postCategory forPhaseObject=$forPhaseObject} {/foreach}
{if $listSource eq "user_activity"} {elseif $listSource eq "user_following"} {else} {if isset($totalLoaded)} {/if} {/if}