{if !empty($errormsg)}

{$errormsg}

{/if}
{$formtoken}
{$CONST.FILTERS} - {$CONST.FIND_COMMENTS}
{$CONST.AUTHOR}: {$CONST.EMAIL}: {$CONST.URL}:
IP: {$CONST.CONTENT}: {$CONST.REFERER}:
{$CONST.COMMENTS}: {* Smarty 3 does support ternary syntax e.g. {('N'==$foo)?'Yes':'No'} *} {$CONST.COMMENTS_FILTER_SHOW}: {$CONST.TYPE}
{serendipity_hookPlugin hookAll=true hook="backend_comments_top" addData=$sql}


{if !is_array($sql)}
- {$CONST.NO_COMMENTS} -
- Return to default comment list "here". -
{else}
{$formtoken} {if is_array($comments)} {* see dashboard PoC :: block_comments_pending.tpl or block_comments.tpl as example *} {foreach $comments AS $comment} {/foreach} {/if}{* array $comments end *}
{if ( $page != 1 && $page <= $pages )} {$CONST.PREVIOUS} {/if} {$CONST.PAGE_BROWSE_COMMENTS|sprintf:$page:$pages:$totalComments} {if $page != $pages} {$CONST.NEXT} {/if}
{if !empty($comment.header_class)} {/if} {* NOTE: a $comment.pubdate with 'c' is available *} {($comment.type == 'NORMAL') ? $CONST.COMMENT : (($comment.type == 'TRACKBACK') ? $CONST.TRACKBACK : $CONST.PINGBACK )} #{$comment.id}, {$CONST.IN_REPLY_TO} {$comment.title|escape}{$CONST.ON} {$comment.timestamp|@formatTime:'%b %e %Y, %H:%M'}
{$CONST.AUTHOR}: {$comment.author|escape|truncate:30:"…"} {$comment.action_author} {$CONST.EMAIL}: {if empty($comment.email)} N/A {else} {$comment.email|escape|truncate:30:"…"} {if $comment.subscribed == 'true'} ({$CONST.ACTIVE_COMMENT_SUBSCRIPTION}){/if} {/if} {$comment.action_email}
IP: {if empty($comment.ip)} 0.0.0.0 {else} {$comment.ip|escape} {/if} {$comment.action_ip} {$CONST.URL}: {if empty($comment.url)} N/A {else} {$comment.url|escape|truncate:30:"…"} {/if} {$comment.action_url}
  {$CONST.REFERER}: {if empty($comment.referer)} N/A {else} {$comment.referer|escape|truncate:30:"…"} {/if} {$comment.action_referer}
{$comment.summary}
{if ($comment.status == 'pending') || ($comment.status == 'confirm')} {$CONST.APPROVE}{$CONST.APPROVE} {/if} {if ($comment.status == 'approved')} {$CONST.SET_TO_MODERATED}{$CONST.SET_TO_MODERATED} {/if} {if $comment.excerpt} {$CONST.TOGGLE_ALL}{$CONST.TOGGLE_ALL} {/if} {$CONST.VIEW}{$CONST.VIEW} {$CONST.EDIT}{$CONST.EDIT} {$CONST.DELETE}{$CONST.DELETE} {$CONST.REPLY}{$CONST.REPLY} {$comment.action_more}

{if ( $page != 1 && $page <= $pages )} {$CONST.PREVIOUS} {/if} {$CONST.PAGE_BROWSE_COMMENTS|sprintf:$page:$pages:$totalComments} {if $page != $pages} {$CONST.NEXT} {/if}
{/if} {* if no comments else comments end *}