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

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

{if $objects|count}
{lang}wcf.global.filter{/lang}
{capture assign=additionalParameters}{* *}{if $userID}&userID={$userID}{/if}{* *}{if $issuerUserID}&issuerUserID={$issuerUserID}{/if}{* *}{if $roomID}&roomID={$roomID}{/if}{* *}{if $suspensionType}&suspensionType={$suspensionType}{/if}{* *}{if $displayRevoked}&displayRevoked={$displayRevoked}{/if}{* *}{/capture}
{pages print=true assign=pagesLinks application="chat" controller="ChatSuspensionList" link="pageNo=%d$additionalParameters"}

{lang}chat.acp.suspension.list{/lang} {#$items}

{event name='columnHeads'} {foreach from=$objects item=$suspension} {event name='columns'} {/foreach}
{lang}wcf.global.objectID{/lang} {lang}wcf.user.username{/lang} {lang}chat.general.room{/lang} {lang}chat.acp.suspension.type{/lang} {lang}chat.general.time{/lang} {lang}chat.general.expires{/lang} {lang}chat.acp.suspension.issuer{/lang} {lang}chat.acp.suspension.reason{/lang}
{event name='rowButtons'} {#$suspension->suspensionID} {$suspension->username} {if $suspension->roomID}{$suspension->roomTitle|language}{else}{lang}chat.room.global{/lang}{/if} {lang}chat.suspension.{@$suspension->type}{/lang} {$suspension->time|plainTime}

{$suspension->expires|plainTime}{if $suspension->expires > TIME_NOW} ({$suspension->expires|dateDiff}){/if}

{if $suspension->revoker && $suspension->expires <= TIME_NOW}

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

{/if}
{$suspension->issuerUsername} reason != $suspension->reason|truncate:30} class="jsTooltip" title="{$suspension->reason}"{/if}>{$suspension->reason|truncate:30}
{@$pagesLinks}
{else}

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

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