{assign var=friends value=$userquery->get_contacts($user.userid,0)} {if $friends} {foreach from=$friends item=friend} {assign var=user_detail value=$friend}
{$user_detail.username}
{if $friend.confirmed!='yes'}Request Sent{elseif $friend.confirmed =='yes'}Friends{/if} {if $user_detail.total_videos|number_format > 1}Videos: {$user_detail.total_videos|number_format}{else}Video: {$user_detail.total_videos|number_format}{/if}
{/foreach} {else}
You have no friends in your list
{/if} {assign var=friends value=$userquery->get_pending_contacts($user.userid,0)} {if $friends} {foreach from=$friends item=friend} {assign var=user_detail value=$friend}
{$user_detail.username}
{if $video.featured=='yes'} Featured{else}{/if} {if $friend.confirmed!='yes'}Pending{elseif $friend.confirmed =='yes'}Friends{/if} Videos: {$user_detail.total_videos|number_format}
{/foreach} {else}
No Pending Friend Requests
{/if}