<!-- 如果是版主，就显示需要审核的帖子 -->
{if condition="moderator_auth($forum['id'])"}
	{php}
		$lists2 = \app\forum\model\Thread::with('user') -> where(['forum_id'=>$forum['id'],'status'=>['neq',1]]) -> order('id desc') -> limit(100) -> select();
	{/php}
	{if condition="count($lists2)"}
		{foreach name='lists2' item='vo'}
			<tr>
				<td>{notempty name='vo.user.nickname'}<a href="{$vo.user.space_url}" class="text-overflow"><img src="{$vo.user.avatar|thumb=14,14,3}" width="14" height="14" alt=""> {$vo.user.nickname}</a>{else}<img src="__ROOT__/system/image/avatar.gif" width="14" height="14" alt=""> 游客{/notempty}</td>
				<td>
					{switch name="vo.status"}
						{case value="99"}
							<span class="text-danger">【<b>待审核</b>】</span>
						{/case}
						{case value="0"}
							<span class="text-danger">【<b>未通过</b>】</span>
						{/case}
						{default /}
							<span class="text-danger">未知状态</span>
					{/switch}
					<span></span>
					<a href="{$vo.url}">{$vo.title}</a>
				</td>
				<td class="hidden-xs">{$vo.create_time|date='Y-m-d H:i',###}</td>
				<td class="hidden-xs">{$vo.views}</td>
				<td class="hidden-xs">{$vo.rethreads}</td>
				<td class="hidden-xs">{$vo.rethread_time|date='Y-m-d H:i',###}</td>
			</tr>
		{/foreach}
		<tr class="warning">
			<th colspan="6" class="text-center">以上是需要审核的帖子！</th>
		</tr>
	{/if}
{/if}	