{function renderComment comment=[]} {$contact = ifset($contacts[$comment.contact_id])}
  • {$comment.text}
    {if $contact}
    {$contact.name|escape}
    {$comment.create_datetime|wa_datetime:'humandatetime'} {if $comment.update_datetime && $comment.create_datetime !== $comment.update_datetime} [s`Saved`] {/if}
    {if $contact.id == $wa->user('id')}
    {/if} {/if}
  • {/function} {if !empty($comment)} {renderComment comment=$comment} {/if}