{foreach item=entry from=$logs.today key=id} {foreachelse} {/foreach} {foreach item=entry from=$logs.yesterday key=id} {foreachelse} {/foreach} {foreach item=entry from=$logs.lastweek key=id} {foreachelse} {/foreach} {foreach item=entry from=$logs.older key=id} {foreachelse} {/foreach}
Today
 {$entry.date|escape}  {$entry.user_name|escape}  {$entry.ip|escape}  {$entry.action|escape}  {$entry.file|substr:10:64|escape}

Log is empty
Yesterday
 {$entry.date|escape}  {$entry.user_name|escape}  {$entry.ip|escape}  {$entry.action|escape}  {$entry.file|substr:10:64|escape}

Log is empty
Last week
 {$entry.date|escape}  {$entry.user_name|escape}  {$entry.ip|escape}  {$entry.action|escape}  {$entry.file|substr:10:64|escape}

Log is empty
Older
 {$entry.date|escape}  {$entry.user_name|escape}  {$entry.ip|escape}  {$entry.action|escape}  {$entry.file|substr:10:64|escape}

Log is empty
{if $debug}{debug}{/if}