{include file='header' pageTitle='chat.acp.suspension.list'}

{lang}chat.acp.suspension.list{/lang}

{hascontent} {/hascontent}

{lang}wcf.global.filter{/lang}

{event name='filterFields'}
{csrfToken}
{capture assign=additionalParameters}{* *}{if $userID !== null}&userID={$userID}{/if}{* *}{if $judgeID !== null}&judgeID={$judgeID}{/if}{* *}{if $roomID !== null}&roomID={$roomID}{/if}{* *}{if $objectTypeID !== null}&objectTypeID={$objectTypeID}{/if}{* *}{if $showExpired !== null}&showExpired={$showExpired}{/if}{* *}{/capture} {hascontent}
{content}{pages print=true assign=pagesLinks controller="SuspensionList" application="chat" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder$additionalParameters"}{/content}
{/hascontent} {hascontent}
{event name='columnHeads'} {content} {foreach from=$objects item=suspension} {event name='columns'} {/foreach} {/content}
{lang}wcf.global.objectID{/lang} {lang}chat.acp.suspension.type{/lang} {lang}chat.acp.suspension.username{/lang} {lang}chat.acp.suspension.judge{/lang} {lang}chat.acp.suspension.room{/lang} {lang}chat.acp.suspension.time{/lang} {lang}chat.acp.suspension.expires{/lang}
{event name='rowButtons'} {@$suspension->suspensionID} objectTypeID}{/link}">{lang}chat.acp.suspension.type.{$suspension->getSuspensionType()->objectType}{/lang} userID}{/link}">{$suspension->getUser()->username} judgeID}{/link}">{$suspension->judge} roomID}{/link}">{if $suspension->getRoom() !== null}{$suspension->getRoom()}{else}-{/if} {@$suspension->time|time} {assign var='isActive' value=$suspension->isActive()} {if $isActive}{/if} {if $suspension->expires !== null}{@$suspension->expires|time}{else}{lang}chat.acp.suspension.expires.forever{/lang}{/if} {if $isActive}{/if} {if $suspension->revoked !== null}
{lang}chat.acp.suspension.revoked{/lang} {/if}
{hascontentelse}

{lang}wcf.global.noItems{/lang}

{/hascontent} {include file='footer'}