{if $posts|@count eq 0} {if $isFuturePhase}
{"This phase has not yet started."|gettext}
{else} {if !isset({$startFrom}) || ($loadedPosts eq 0 && $totalLoaded eq 0)}
{"No posts found."|gettext}
{else}
{"No more posts."|gettext}
{/if} {/if} {else} {foreach from=$posts item=cPost} {assign var='postCategory_id' value=$cPost->data.post_category} {assign var='postCategory' value=Category::getParent($postCategory_id)} {if $postCategory->isIncubatorChallenge()} {assign var='milestoneCollection' value=Milestone::getCollection($postCategory->id, $cPost->id)} {Milestone::assess($milestoneCollection, $cPost)} {/if} {include file=Template::get('category/view_postPreview.html') isDraft=$draftView} {/foreach} {*{if isset($postStart)}{* means we're on the activity page *} {if $listSource eq "user_activity" && !$draftView}
{"Load more"|gettext}
{elseif $listSource eq "user_activity" && $draftView}
{"Load more"|gettext}
{elseif $listSource eq "user_following"}
{"Load more"|gettext}
{else} {if isset($totalLoaded)} {/if} {/if} {/if} {if isset($selectedCategory->tempData.phase)} {/if}